[HarfBuzz] Glyphs with negative advance width

Behdad Esfahbod behdad at behdad.org
Wed Jun 5 16:41:36 PDT 2013


Hi Olivier,

Thanks for the report.  I'm hesitant to make HarfBuzz return negative advance
values as that can confuse downstream users.  If this doesn't prove to be a
major issue, I think we should ignore it for now.

behdad

On 13-06-01 05:40 PM, Olivier Berten wrote:
> 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
> 
> 
> 
> _______________________________________________
> HarfBuzz mailing list
> HarfBuzz at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/harfbuzz
> 

-- 
behdad
http://behdad.org/



More information about the HarfBuzz mailing list