Suggestion: Support for iOS 18+ System Fonts in Anki iOS Version

Hi Anki Developers,

With the release of iOS 18, there is now a new font viewer that allows users to see and download several new system fonts, such as the Japanese “YuKyokasho” font.

However, when I try to use these fonts in my card templates with font-family: 'YuKyokasho Yoko' , it doesn’t seem to work on iOS, even though this method works perfectly on Mac.

I’m not sure if this is a limitation of iOS itself or if the Anki app on iOS doesn’t currently support these system fonts. If it’s the latter, I would like to suggest adding support for these new iOS 18+ system fonts in the Anki iOS version.

Thank you for considering this request!

I would expect it to work out of the box - maybe there’s a mismatch between the internal font name and the one you’ve specified in your card template? Is the .ttf file you’re using in your media folder, so I can grab a copy?

Thank you for your reply.

I’m not using a custom font, but rather one that is built into the system, so I don’t have a .ttf file. On macOS, I use the following code to call the system font “YuKyokasho Yoko,” and it works as expected:

.VocabKanji :lang(ja) {
  font-family: 'YuKyokasho Yoko';
}

After the iOS 18 update, I noticed that the same font is now available as a built-in option (it’s an optional download), so I used the same code to try and call it on iOS, but it didn’t work. I also tried a few other possible font names, but none of them succeeded.

Any insights would be greatly appreciated!

I experimented a bit, but wasn’t able to figure it out I’m afraid. Maybe Apple haven’t exposed these system fonts to the webview yet? In the mean time, the old approach should still work: Custom Fonts - AnkiMobile Manual

Thanks for letting me know. I’ll keep an eye on this issue and see if anything changes in future updates.