Vertical alignment

new_to_typo's picture

does anyone know if fontlab can automatically vertically center all glyphs in a font? In fact, what I a m trying to do is just center all glyphs both vertically and horizontally, or at least align all of them on the same horizontal baseline.
I now have over 1038 glyphs in my font and can't imagine doing that manually (off course I can, but it is such a waste of time...)

tnx

Bahman Eslami's picture

Is there?!
I need this function too, but it seems that nobody has ever done this before.
Any help or solution in any application will be appreciated.

Thanks

hrant's picture

You can set all the widths equal to the Em, rotate all the glyphs 90 degrees, center horizontally, then rotate them back; then presumably [re]space them horizontally.

hhp

Bahman Eslami's picture

Brilliant and clever solution. I wonder why it didn't enter my mind!
Thanks Hrant :)

Bahman Eslami's picture

Ok, the idea was clever but also the implementation was not as straight forward as the idea. Here is a link to a fontlab action set that centers your glyphs vertically:
https://dl.dropbox.com/u/102586488/center_glyph_vertically.prg

Note that you'll lost your original sidebearings (metrics) after running this action set.

Bahman

hrant's picture

Well, you can save the sidebearings (and kerning) and re-incorporate them after the vertical centering routine. Although the more things end up shifting up/down the less valid the original lateral spacing will be.

hhp

Syndicate content Syndicate content