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.
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?
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:
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.
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