Margins and components strange behaviour in Fontlab

21 views
Skip to first unread message

Telex

unread,
Mar 19, 2014, 6:55:25 PM3/19/14
to rob...@googlegroups.com
If I simply change a sidebearing in accents, by code, the components move.
This doesn't happen changing the sidebearing manually.

For example, executing this simple code will disalign components in Ntilde, ntilde, etc. 
So I have to rebuild these glyphs

f=CurrentFont()
f['tildecomb'].leftMargin=0
f.update()

Any ideas?


disalign.png

Erik van Blokland

unread,
Mar 20, 2014, 2:49:08 AM3/20/14
to rob...@googlegroups.com
The left margin does not exist independently of the glyph contours. By setting the leftMargin to 0 you really move the outlines in tildecomb to the left until the leftmost point in the leftmost contour hits the x=0. This move then shows up in all glyphs that have a component referencing tildecomb. 

Erik

Telex

unread,
Mar 20, 2014, 3:39:17 PM3/20/14
to rob...@googlegroups.com
I imagined that...
Do you know a simple way to assign new sidebearing values to components without altering composites?

Thanks for your quick response Eric.
Reply all
Reply to author
Forward
0 new messages