Expressions - smart side-bearings (LSB, RSB, AW) for composites

Before asking a question on FontCreator look here for possible solutions and tutorials. Please do not post support requests here.
Post Reply
Erwin Denissen
Moderator
Moderator
Posts: 10576
Joined: Fri Oct 04, 2002 12:41 am
Location: Bilthoven, The Netherlands
Contact:

Expressions - smart side-bearings (LSB, RSB, AW) for composites

Post by Erwin Denissen »

You can use a nifty expression for left and right side-bearings which ensures matching metrics for composites and their base characters.

The expression does not contain glyph names, which makes it even more convenient.

Say you have a composite named olongstroke ($A74B) that is made out of o and strokelongcomb. Here the stroke is wider than the o, so it is hard to determine LSB and RSB that match the metrics from the o. Then just provide base() for both LSB and RSB (or AW) and FontCreator will do the math for you.

Same goes for icircumflex, idieresis, etc, as long as the glyphs are composites.
base.png
base.png (49.49 KiB) Viewed 2428 times
Of course it also works with combining marks that not extend the width of the base character, so you can also use it for Abreveacute, acircumflexdotbelow, etc.

You can't use it for ligatures like uk-cyrl, but you can use comp(o-cyrl) for LSB and comp(u-cyrl) for RSB. If there is a need to also support base() here, we might be able to support it, just ask!
Erwin Denissen
High-Logic
Proven Font Technology
Post Reply