Quantcast
Channel: TypeDrawers
Viewing all articles
Browse latest Browse all 4153

Text center alignment at the font level

$
0
0
Hello,

I'm hoping to get some insight on how one can mimic the behavior of center text alignment as in that of text applications. I need this to happen at the font level, within specified contexts. Effectively, the centering rules need to apply after a target character (let's say, "G" as in the image below); the text following would position appropriately, below and centered.


I can manage to position the bottom portion...that part's easy. It's the centering of these characters (as a unit) that is proving quite the challenge. Sure, centering one character is fairly simple: calculate the number of characters above and target the bottom portion at the mid point, apply an offset if necessary and it's done. But what happens when we're dealing with more than one character to center, and at that, how does one compensate for the varying character widths overall, for the top and/or bottom portion? 

Is this achievable within Open type rules?

Many thanks for reading.

Viewing all articles
Browse latest Browse all 4153

Trending Articles