Unable to Load azuki.ttf Font on Android - Seeking Solution

Hello Anki Developers,

I am currently creating an English vocabulary deck in Anki and using a custom font (azuki.ttf). While the font works perfectly on iPhone and Mac, I am encountering the following error message when displaying the cards for the first time on an Android device:

Error Message:
“Unable to load azuki.ttf”

Since I do not own an Android device, I am unable to perform direct error handling, but I would greatly appreciate any advice on the following points regarding this issue:

  1. Font File Path Check
    Are there any specific things to check or be aware of when setting the font file path on Android devices?
  2. Font Format Compatibility
    Could the issue be related to the .ttf font format being incompatible with Android? If so, should I consider converting the font to another format (such as .otf) for better compatibility?
  3. Cache Issues
    Is it possible that the font not displaying properly is due to a cache issue in the Android version of Anki? If so, how can I clear the cache or resolve such issues?
  4. Other Possible Solutions
    If none of these methods resolve the problem, are there any other solutions or troubleshooting steps that I should try?

Additionally, here is the shared link to the deck that is causing the issue:
https://ankiweb.net/shared/info/584589952

Thank you in advance for your help, and I look forward to any insights the forum members can provide.

I would’ve tested this on my end, but it’s 200MBs, the import would take too much time (and then I’ll need to clean up the leftover files). So, you should probably copy paste the template code you’re using. If you’re loading the font using an import statement, then the internet can also be an issue.

Every file should be in collection.media, nothing else.

TTF works fine. I use them all the time.


I remember I (and some others) had some issues with Noto Nastaleeq fonts on Android. The file was there but it just wasn’t loading for some reason. Haven’t encountered the bug in latest versions though, so you might want to ask your deck users to update the app and see if the issue persists.

1 Like

Do you have that font installed directly in Android on that device?

Or did you embed that font in your collection like this – Styling & HTML - Anki Manual ?

1 Like

Thanks for the advice.
Based on your suggestion, I will ask the Android user if the deck is successfully imported and if the version of Anki is updated to the latest version.

Yes !! Perhaps that implementation is done; it works fine on MacOS and iOS.

I asked 2 different questions, so I don’t understand your response. Which of those 2 things did you do?