[HarfBuzz] hb-shape vs hb-view: ligatures

James Cloos cloos at jhcloos.com
Wed Feb 4 10:06:08 PST 2015


>>>>> "LS" == Lars Schwarz <lars.schwarz at gmail.com> writes:

LS> Example text I'm using is "Sauerstoffflasche". The image shows glyphs for
LS> st, ff and fl, but hb-shape returns this:

LS> S,a,u,e,r,s,t,o,f_f,fl,a,s,c,h,e

LS> I was expecting something like 'st' instead of 's' and 't'?

What font?

I tried that with a couple of fonts, and had to pass --features=dlig to
get the st lig.

Passing --features=dlig also to hb-shape showed (for one font):

[S=0+472|a=1+396|u=2+487|e=3+415|r=4+327|s_t=5+614|o=7+492|f_f=8+523|f_l=10+482|a=12+406|s=13+342|c_h=14+870|e=16+420]

and, for DejaVu Serif:

[S=0+1403|a=1+1221|u=2+1319|e=3+1212|r=4+979|uniFB06=5+1910|o=7+1233|uniFB00=8+1455|fl=10+1366|a=12+1221|s=13+1051|c=14+1147|h=15+1319|e=16+1212]

The c_h lig only occurs with --language=de; but the s_t lig only requires --features=dlig.

(I'm on hb 0.9.37, compiled from git.)

-JimC
-- 
James Cloos <cloos at jhcloos.com>         OpenPGP: 0x997A9F17ED7DAEA6


More information about the HarfBuzz mailing list