Open Mark2Mark opened 2 years ago
When a font is loaded directly (GSFont({PATH})
) it doesn't have a document and thous can’t store a file path. So .save()
always needs a path
argument.
when makeCopy
is set, it always requires a file paths as that is the purpose of that flag.
font.save()
on a font that is loaded withGSFont({PATH})
(not in the UI), it fails with the error:_While when executing
font.save()
on a font that is open in the UI, it works as expected._The Documentation says:
makeCopy=True
, it then also expects a filePath. The "optional" filePath claim seems misleading then.Font.save(path="/Users/.../Desktop/New Font.glyphs", makeCopy=True)
)formatVersion=2
from a file that is version 3) does nothing, it should probably raise an error as it is likely to be not compatible. However, the other way around also does nothing:Font.save(formatVersion=3)
where the opened file is set to version 2.