[HarfBuzz] Possible bug in chain_context_lookup with Gpos

Keith Stribley devel at thanlwinsoft.org
Thu Jan 6 09:36:40 PST 2011


Hi Behdad,

I think there maybe a bug in the handling of kerns using format 3 Chaining Context lookups. When GPOS lookups are used, then the output part of the buffer does not seem to be used. In this case if there is a backtrack context, then the check (c->buffer->out_len<  backtrackCount) at the start of chain_context_lookup will always fail. For GPOS I think it should use the main buffer not the output buffer. Presumably the current code works fine for Chaining Contexts for GSUB lookups, but the attached patch may be necessary for GPOS.

This patch fixes the positioning of ့ in sequences like ကဲ့ for the Padauk font for example, so that HBNG then behaves the same as other renderers like ICU and Uniscribe.

thanks,
Keith


-------------- next part --------------
A non-text attachment was scrubbed...
Name: gposchaincontext_krs20110106.patch
Type: text/x-patch
Size: 2348 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/harfbuzz/attachments/20110107/7f0e1ec4/attachment.bin>


More information about the HarfBuzz mailing list