Fontlab API

Santiago Orozco's picture

Hallo!
A few years ago I come across this unofficial Fontlab API http://www.e-font.de/flpydoc/view_html.html
I'm developing a script for interpolate nodes & I'm having problem at accessing a specific master, I've tried using fl.layer, but as this is read only I cannot specify the layer to apply my changes, e.g.

fl.layer = fl.layer
fl.SetUndo()
g = fl.glyph

Is there an updated Fontlab API documentation? does anyone knows how to access a specific master?

thank you in advance, cheers!

eigi's picture

Hello,
you can do something like this:

glyph = fl.glyph
for node in glyph.Layer(1):
	node.Shift(Point(0,50))
fl.UpdateGlyph(fl.iglyph)


Best
Eigi

Santiago Orozco's picture

Thank you Andreas! It worked!!!

Syndicate content Syndicate content