[Bug 455647] [Indic] Firefox displays garbage Indic characters on parts of some English webpages

bugzilla-daemon at mozilla.org bugzilla-daemon at mozilla.org
Thu Sep 18 04:02:30 UTC 2008

Do not reply to this email.  You can add comments to this bug at

Karl Tomlinson (:karlt) <mozbugz at karlt.net> changed:

           What    |Removed                     |Added
                 CC|                            |roc at ocallahan.org

--- Comment #7 from Karl Tomlinson (:karlt) <mozbugz at karlt.net>  2008-09-17 21:02:19 PDT ---
The problem is in creating TextRuns.

First the fast path is attempted, and it calls AddGlyphRun with
aStartCharIndex == 0.  The fast path fails and falls back to the itemizing

The itemizing path also calls AddGlyphRun with aStartCharIndex == 0 and a
different font.  The would be fine except that aForceNewRun == PR_TRUE is
passed, which means that two different glyph runs with different fonts are
recorded for the first run.

The comparator used for the sort in SortGlyphRuns says the order of GlyphRuns
with the same character offset is not important so the order becomes random
and a random font gets used to render the glyphs (the indices of which were
selected from a specific font).

Configure bugmail: https://bugzilla.mozilla.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the fonts-bugs mailing list