danielchalmers / DesktopClock

A digital clock for your desktop!
https://github.com/danielchalmers
MIT License
120 stars 31 forks source link

Are OTF fonts supported? #54

Closed sidola closed 1 month ago

sidola commented 1 month ago

Hi, I'm trying to change the font to an OTF font but it seems to be quietly failing. Is there a limitation on what font formats are allowed? All of my TTF fonts work fine.

danielchalmers commented 1 month ago

Which font are you trying to use?

sidola commented 1 month ago

https://www.dafont.com/akira-expanded.font

Using the config value "FontFamily": "AkiraExpanded-SuperBold"

Edit: Found another random OTF font which does seem to work (https://www.dafont.com/lemon-milk.font), the only difference seemingly being that it uses spaces instead of dashes in its font name.

danielchalmers commented 1 month ago

Try "Akria Expanded" or "Akria Super". Fonts will be in a UI picker in v5 to make it easier to find them

sidola commented 1 month ago

Huh, yeah "Akira Super" works, as well as "Akira Super Bold", meanwhile "Akira Expanded" doesn't work. Interesting. Thanks for the help!