[HarfBuzz] Glyphs with negative advance width

Olivier Berten olivier.berten at gmail.com
Sat Jun 1 14:40:05 PDT 2013


Hi!

Although it isn't complying with the TrueType/OpenType specifications,
some fonts have some glyphs with negative advance width.

Advance width (in htmx) is defined as USHORT/uint16 but it seems
everybody else reads it as SHORT/int16.

In the attached font, glyph "uni17b7" (khmer character  ិ) has a
negative advance width. You can try it with the string និងសមភាព

I wouldn't call this a bug in harfbuzz since it's a font bug but for
compatibility reasons, it might be useful to change it...

Olivier
-------------- next part --------------
A non-text attachment was scrubbed...
Name: aphireak1.ttf
Type: application/x-font-ttf
Size: 263256 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/harfbuzz/attachments/20130601/e51081ff/attachment.bin>


More information about the HarfBuzz mailing list