|
From: Khaled H. <kha...@eg...> - 2011-11-09 16:15:32
|
On Wed, Nov 09, 2011 at 01:49:56PM -0200, Dimitre Lima wrote: > It would be amazing to be able to use "Metrics -> Center in Width" feature in > FontForge Python. I think it shouldn't be hard to do the needed calculation in Python, something like: glyph = fontforge.activeFont()['a'] xmin,ymin,xmax,ymax = glyph.boundingBox() bwidth = xmax-xmin glyph.left_side_bearing = glyph.right_side_bearing = (glyph.width-bwidth)/2 Regards, Khaled |