michal-h21 / luatex-harfbuzz-shaper

Experimental text shaping in LuaTeX using Harfbuzz library
10 stars 0 forks source link

Support for font expansion and protrusion #4

Open michal-h21 opened 8 years ago

michal-h21 commented 8 years ago

What is needed to support these? Just setting stretch, shrink, step and auto_expand in font properties doesn't seem to work.

michal-h21 commented 8 years ago

It seems that at least protrusion work with Microtype package when \MainFamily is used

michal-h21 commented 8 years ago

Even font expansion works:

Font expansion sample

this is extreme sample with

\usepackage[shrink=200, stretch=200 ]{microtype}

it seems that it works only with font families which use standard LaTeX font selection mechanism, fonts defined directly with \font aren't supported out of the box. I think this kind of support is enough.