Anki Forums

How to Retain Fonts from Desktop Version?


I put a special font on the desktop version and I got it to show correctly, but it does not show up correctly on the iPhone app. Do I need to install the font onto the phone, or the app, or something else?

Thank you.

You don’t need to install the font, but your phone does need to have access to it. If you put the font file in the Anki media folder and declare the font in your card template styling, then it should work.

This is the code I use for my Sheikah language cards:
@font-face { font-family: sheikah; src: url(’_Sheikah.ttf’);}
.Sheikah {font-family: sheikah;}

If this is going over your head, then I could spell out the steps more. Also, it’s best if you start the font name with an underscore so that Anki doesn’t mistake it for a media file that isn’t used (as no card is referencing the font, just the note template).


Some more info: Custom Fonts - AnkiMobile Manual