Hi!
I'm trying to access the width attribute of a glyph's mask via macro. I activated "Mask layer has its own metrics" in the FLS settings.
def compareMetrics(f, g, i): # font, glyph, glyphindex
if hasattr(g.mask, "width"):
print g.name, g.mask.width
else:
print g.name, "has no mask with attribute width"
fl.ForSelected(compareMetrics)
The result is, either there is no width (if a glyph has no mask), or if the glyph has a mask, the width is always reported as 0.
Is there any way to get the real mask width?
Thanks,
Jens