[HarfBuzz] Thai, revisited

Behdad Esfahbod behdad at behdad.org
Sun Jan 22 12:31:34 PST 2012

On 01/21/2012 05:27 AM, Jonathan Kew wrote:
> It turns out that some legacy Thai fonts provide OpenType substitution features to implement mark positioning, but (incorrectly) put those features/lookups under the 'latn' script tag instead of using 'thai' (or possibly 'DFLT'). See https://bugzilla.mozilla.org/show_bug.cgi?id=719366 for an example and more detailed description.
> Although this is really a font bug, I suggest that we could improve the rendering of such fonts by looking for the 'latn' as a fallback if neither the requested script nor "default" is found in hb_ot_layout_table_choose_script. Suggested patch against harfbuzz master is attached.

This is unfortunate but harmless.  I've committed to my tree which I will push
out later today.  I changed your patch to remove the hb-ot-tag.h changes.  I
don't like the LATIN tag in the public API.

> This does _not_ affect the other kind of legacy Thai font, where custom code to support vendor-specific PUA codepoints would be needed. I'm not keen to go down that path; IMO, such fonts should be ruthlessly stamped out in favour of standards-based solutions. :)

Yeah, lets not go there...


> JK

More information about the HarfBuzz mailing list