Vertical alignment

Primary tabs

6 posts / 0 new
Last post
Typofan's picture
Offline
Joined: 26 Feb 2005 - 9:43am
Vertical alignment
0

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
Offline
Joined: 20 Feb 2007 - 12:47am
0

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 H Papazian's picture
Joined: 3 May 2000 - 11:00am
0

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
Offline
Joined: 20 Feb 2007 - 12:47am
0

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

Bahman Eslami's picture
Offline
Joined: 20 Feb 2007 - 12:47am
0

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 H Papazian's picture
Joined: 3 May 2000 - 11:00am
0

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