for glyph in Glyphs.font.glyphs:
for layer in glyph.layers:
if layer.hints:
for hint in layer.hints:
if hint.isTrueType and hint.horizontal and hint.type == TTSTEM:
hint.options = TTDONTROUND
hint.stem = -1
gives me an error of:
Traceback (most recent call last):
File "<macro panel>", line 409
File "GlyphsApp/GlyphsApp/__init__.py", line 11956, in <lambda>
File "GlyphsApp/GlyphsApp/__init__.py", line 11949, in GSHint__setStem__
ValueError: Wrong value. Stem values can be indices of TT stems ("TTFStems" master custom parameter) or -1 for no stem or -2 for automatic.
I believe this used to workā¦ how long ago I donāt remember
The setter expects that you have added a āTTFStemsā custom parameter in the master settings. But there was also an error in the setter code. That I finally fixed. So thanks for the reminder.
aha, thank you. just to clarify - the TTFStems parameter is unnecessary if all the hints are set to āno stemā and/or if your PS/TT hints arenāt different? I assume the master-level stems get used by default and the TTFStems parameter is only used if defined?
I have been testing different strategies for variable fonts, no stem seems to work better in some apps. but I am starting to lean toward no hinting at all in variable fonts. outside VF, āno stemā also seems to work better in some glyphs in terms of how it distorts the red-colored preview outline, but I donāt know that it affects the actual rendering much if at all