Bug: generate TTF generates OTF

Found a bug: generating TTF instances through code actually generates OTF files:

for instance in Font.instances:
    instance.generate(Format = TTF, FontPath = '...', Containers = [PLAIN])

Version 3311

Shouldn’t TTF be in quotes? I suspect Format expects a string, and if it doesn’t get what it wants, it falls back to OTF.

Edit:
Ah no, seems to be without quotes, as Georg recently wrote it like you here.

Then I’d also call it a :lady_beetle:.

The arguments are all lowercase now (as the documentation had it all along). I added a fallback to still allow the uppercase arguments but messed it up. But switching to lowercase makes it work just fine:

instance.generate(format=TTF, fontPath='...', containers=[PLAIN])
2 Likes