[HarfBuzz] bug in hb_ot_layout_lookup_collect_glyphs?
Werner LEMBERG
wl at gnu.org
Sun Mar 16 23:08:09 PDT 2014
Behdad,
HarfBuzz doesn't validate glyph indices returned by
`hb_ot_layout_lookup_collect_glyphs'. I think this qualifies as a
bug.
The attached font incorrectly uses glyph index 0xFFFF in a GSUB
lookup. ttx says
<GSUB>
...
<LookupList>
<!-- LookupCount=8 -->
<Lookup index="0">
<LookupType value="1"/>
<LookupFlag value="0"/>
<!-- SubTableCount=1 -->
<SingleSubst index="0" Format="2">
...
<Substitution in="uni0162" out="glyph65535"/>
<Substitution in="uni0163" out="glyph65535"/>
and HarfBuzz happily returns 0xFFFF, too.
Werner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Roboto-Thin.ttf.xz
Type: application/octet-stream
Size: 46688 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/harfbuzz/attachments/20140317/6cd3b5f5/attachment-0001.obj>
More information about the HarfBuzz
mailing list