HarfBuzz text shaping engine
Go to file
Behdad Esfahbod 71632c96da Fallback to Latin script if the font has no other usable scripts
Patch and description from Jonathan Kew:

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 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. :)

JK
2012-01-22 15:31:44 -05:00
contrib/python Add graphite2 integration from Martin Hosken 2011-08-24 01:32:41 +02:00
src Fallback to Latin script if the font has no other usable scripts 2012-01-22 15:31:44 -05:00
test More shoveling around 2012-01-21 20:03:25 -05:00
util [util] Make clusters work with char offset instead of UTF-8 offset 2012-01-21 19:07:22 -05:00
AUTHORS Add build system 2009-11-02 16:34:59 -05:00
COPYING Update README, etc 2011-05-25 15:40:49 -04:00
Makefile.am Move hb-view into util/ 2011-08-09 15:03:00 +02:00
NEWS Release 0.6.0. First official tarball release! 2011-05-27 03:48:27 -04:00
README Update README, etc 2011-05-25 15:40:49 -04:00
TODO Add TODO item 2011-09-27 13:50:45 -04:00
autogen.sh Bug 39763 - autogen.sh should check pkg-config availability 2011-08-02 11:25:13 -04:00
configure.ac Start adding new shaping test suite together 2012-01-19 15:21:04 -05:00
git.mk Add build system 2009-11-02 16:34:59 -05:00
harfbuzz.doap Minor 2011-05-27 04:14:42 -04:00
harfbuzz.pc.in Add build system 2009-11-02 16:34:59 -05:00

README

This is HarfBuzz, a text shaping library.

For bug reports, mailing list, and other information please visit:

  http://harfbuzz.org/

For license information, see the file COPYING.