Closed Bug 634734 Opened 15 years ago Closed 15 years ago

Fennec ASSERTION: mFUnitsConvFactor not valid: 'mFUnitsConvFactor > 0.0f

Categories

(Core :: Layout: Text and Fonts, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dougt, Assigned: dougt)

Details

Attachments

(1 file)

When loading pages in fennec, I see lots of these assertions
mFUnitsConvFactor should be set before using mHarfBuzzShaper. It need only be done once. gfxPangoFont does that here: http://hg.mozilla.org/mozilla-central/annotate/64d579f7746b/gfx/thebes/gfxPangoFonts.cpp#l2117 gfxFT2Font should do something similar. There may be advantage in delaying locking the face till InitTextRun if the FT_Face does not have the right size already set at time of gfxFT2Font construction.
Attached patch patch v.1Splinter Review
Assignee: nobody → doug.turner
Attachment #512958 - Flags: review?(karlt)
Comment on attachment 512958 [details] [diff] [review] patch v.1 > if (gfxPlatform::GetPlatform()->UseHarfBuzzLevel() >= > gfxUnicodeProperties::ScriptShapingLevel(aRunScript)) > { >+ if (!mHarfBuzzShaper) >+ { "{" should be at the end of the "(!mHarfBuzzShaper)" line. (The "{" at the start of the line above is special because of the multi-line condition and 4-space indent.)
Attachment #512958 - Flags: review?(karlt) → review+
Attachment #512958 - Flags: approval2.0+
Status: NEW → RESOLVED
Closed: 15 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: