Page 1 of 1

TTFs display in editor, not in watchface; "Cache: full"

Posted: 09 Apr 2024, 21:01
by Beartoe
I'm building a GTR4 analog face with TTF fonts ("NeueHaasDisplayMediu.ttf" face). I'm using two displays (DOW and date) at 30 size and 3 additional displays (weather, HR, and PAI) at a smaller (26) size. Everything looks great in the editor and rendered previews, but no text displays on watch.

Looking at the WF index code, after the second time the font is called to make widgets, there is an apparent error "Cache: full" stated in the leading comment line.

This is not a crazy amount of rendering; One type face, two different type sizes, and not really that large. This doesn't seem like the kind of problem that should require manual editing to fix, especially since all previews work properly. (Although I don't mind fixing the index if I have to.) So I'm a little puzzled. What am I doing wrong? How can I fix this issue?

Re: TTFs display in editor, not in watchface; "Cache: full"

Posted: 12 Apr 2024, 08:42
by SashaCX75
If you send the dial project it will help to determine the problem.
Also to make sure that the problem is not in the code you can try to enable the system font. Some font files, although they have *.ttf extension, are not TrueType. If the watch face will work with the system font, then the problem is in the font file.

Re: TTFs display in editor, not in watchface; "Cache: full"

Posted: 15 Apr 2024, 17:00
by Beartoe
Thanks, Sasha.

Re: TTFs display in editor, not in watchface; "Cache: full"

Posted: 13 Apr 2025, 02:05
by gingerbeardman
It might make sense to use FontForge, or similar, to generate a TTF file with the subset of characters from the font that you will be using.

It's unlikely you'll be using the full range of Unicode that is included in the font. Such as multiple scripts and alphabets.