Add custom font

Hi,

I am going to add a custom font to PeerTube which may not be installed on the client computer. So, the font files must be downloaded to the client PC upon request.

I added the required @font-face { … } to the _fonts.scss file in « /client/src/sass/include » folder, and made a new folder inside « /client/src/sass/fonts » folder and uploaded the required ttf, woff, woff2, eot font files there. Then I built the software. Also I put the new font-family in body#custom-css.

Now, if the font is installed on the client PC, the new font is shown correctly. But if this font is not installed on the client PC, it shows the default font.

1 « J'aime »

Hi all,
I made a mistake. The above solution works.