Fix for bug 7467609 Bad rendering of Telugu text

This change moves Telugu back before the fallback font. Previously it
had been moved to after it because it contained incorrect mappings of a
number of characters, including U+2212 and U+FFFD. These fonts have now
been fixed. When placed after the Droid Sans Fallback font, the glyph
count for complex script shaping exceeded the 2^16 limit, causing
incorrect rendering.

This patch depends on the fix for the Lohit-Telugu font.

Change-Id: Ib1bc665a246c4ad65a0dea1c261df5696b440344
This commit is contained in:
Raph Levien
2012-12-04 14:02:43 -08:00
parent 9f2532bf12
commit ab815a701e

View File

@@ -101,6 +101,11 @@
<file>AndroidEmoji.ttf</file>
</fileset>
</family>
<family>
<fileset>
<file>Lohit-Telugu.ttf</file>
</fileset>
</family>
<family>
<fileset>
<file>DroidSansFallback.ttf</file>
@@ -111,13 +116,10 @@
<file lang="ja">MTLmr3m.ttf</file>
</fileset>
</family>
<!--
Fonts below this point have problematic glyphs and should not be moved
higher in the fallback list until those glyphs have been fixed.
<!-- Note: complex scripts (i.e. those requiring shaping in Harfbuzz) have
a cumulative limit of 64k glyphs. Thus, if they are placed after the
large fonts such as DroidSansFallback, they are likely to render
incorrectly. Please use caution when putting fonts toward the end of
the list.
-->
<family>
<fileset>
<file>Lohit-Telugu.ttf</file> <!-- masks U+FFBC-10007 -->
</fileset>
</family>
</familyset>