SOLVED compileGlyph and glyphConstruction
I get a
DeprecationWarningwhen I use an older script that uses
font.compileGlyph(newGlyph, baseGlyph, accent, preflight=False)
/Applications/RoboFontBeta3.app/Contents/Resources/lib/python36.zip/lib/fontObjects/fontPartsWrappers.py:1870: DeprecationWarning: 'Font.compileGlyph(...)': use 'glyphConstruction'
When I use
glyphConstructioninstead, I get this error:
AttributeError: 'RFont' object has no attribute 'glyphConstruction'
Is there a pythonic way to use the suggested
glyphConstruction, is there a
glyphConstruction()function, something like
glyphConstruction(newGlyph, baseGlyph, accent)?
font.compileGlyphis deprecated in FontParts. Glyph Construction is the new recommended method for building accented glyphs.
please have a look at Building accented glyphs with a script for an example script using the
glyphConstructionbuilder. there’s also a script to convert your accents dict into glyph constructions.
ps. once you have your accented glyphs in glyph construction syntax, you can use the Glyph Builder interface in the Glyph Construction extension to preview the new glyphs before building them.
martin last edited by
@gferreira thank you, that is precisely what I was looking for!
@gferreira I noticed that the example buildAccentedGlyphsRF3.py does not consider leading
graveas components over and over to
agrave, each time I run the script. Is this intentional?
hello @martin, thanks for reporting. this was an oversight.
@gferreira thank you, that's perfect. I also noticed you added a my favorite