Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab815a70 authored by Raph Levien's avatar Raph Levien
Browse files

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
parent 9f2532bf
Loading
Loading
Loading
Loading
+9 −7
Original line number Diff line number Diff line
@@ -103,21 +103,23 @@
    </family>
    <family>
        <fileset>
            <file>DroidSansFallback.ttf</file>
            <file>Lohit-Telugu.ttf</file>
        </fileset>
    </family>
    <family>
        <fileset>
            <file lang="ja">MTLmr3m.ttf</file>
            <file>DroidSansFallback.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.
    -->
    <family>
        <fileset>
            <file>Lohit-Telugu.ttf</file> <!-- masks U+FFBC-10007 -->
            <file lang="ja">MTLmr3m.ttf</file>
        </fileset>
    </family>
    <!-- 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.
    -->
</familyset>