How to install a font/type face on anki

Hi,

Sorry for my bad English I’m French.

I wan’t to install a font to read my cards but I cannot find the right file to put the .ttf in it

Could you help me please ?

In my occurrence, the directory is ~\collection.media.

You can put your font file _yourfont.ttf(should add a _ prefix in case removed in accident) in this directory and use the following code in Styling section to import it.

@font-face { font-family: yourfontname; src: url('_yourfont.ttf'); }

And then apply yourfontname as a alias of your font.

1 Like

https://docs.ankiweb.net/files.html#file-locations