danielchalmers / DesktopClock

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

Are OTF fonts supported? #54

Closed sidola closed 3 months ago

sidola commented 3 months 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 3 months ago

Which font are you trying to use?

sidola commented 3 months 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 3 months 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 3 months ago

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