Closed Bug 754243 Opened 14 years ago Closed 14 years ago

###!!! ASSERTION: We don't have a glyph, but font indicated that it supported this char in tables?: 'gid != 0', file gfx/thebes/gfxFT2Fonts.cpp, line 641

Categories

(Core :: Graphics, defect)

All
Android
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla15

People

(Reporter: decoder, Assigned: jfkthame)

References

Details

Attachments

(1 file)

The following HTML code triggers an assertion on Fennec Native (mozilla-central, debug build, rev 448f554f6acb): <script> var x = document.createElementNS("http://www.w3.org/1999/xhtml", "textarea"); document.documentElement.appendChild(x); x.value = "\uC879\uFE08\"\uF38F\n"; </script> I verified that this assertion does not trigger on a Firefox desktop debug build.
Blocks: adbfuzz
Component: General → Graphics
Product: Fennec Native → Core
QA Contact: general → thebes
I've also seen this assertion on a desktop linux build with --disable-pango, which causes us to use the "FT2 fonts" backend, similarly to Android. It seems that when a font contains multiple charmaps, Freetype may not necessarily choose the Unicode one when the face is created; if it picks MacRoman, for example, then characters outside that set will not be found, even though they may be present in the font. So this patch explicitly selects the Unicode charmap after we create the face.
Attachment #625584 - Flags: review?(jdaggett)
Attachment #625584 - Flags: review?(jdaggett) → review+
Assignee: nobody → jfkthame
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: