Closed Bug 1022792 Opened 10 years ago Closed 10 years ago

"ASSERTION: standard generic font family type required"

Categories

(Core :: CSS Parsing and Computation, defect)

x86_64
macOS
defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla33
Tracking Status
firefox33 --- verified

People

(Reporter: jruderman, Assigned: jtd)

References

Details

(Keywords: assertion, regression, testcase)

Attachments

(3 files)

Attached file testcase
###!!! ASSERTION: standard generic font family type required: 'aGenericType >= eFamily_serif && aGenericType <= eFamily_fantasy', file gfx/thebes/gfxFont.cpp, line 4877 This assertion was added in: changeset: https://hg.mozilla.org/mozilla-central/rev/e39cfafa8517 user: John Daggett date: Fri Jun 06 15:09:23 2014 +0900 summary: Bug 280443 p3 - use fontlist struct in gfx. r=roc,fredw
Attached file stack
Assignee: nobody → jdaggett
This is an artifact of how -moz-fixed was handled prior to the fontlist struct changes in bug 280443. When -moz-fixed was the sole generic in a fontlist, it would set the font family to monospace and *also* set the size. However, when included with other fonts, it would be passed untranslated down to gfx and effectively ignored. Not sure the semantics of this "magic" name were well thought about but for now, just treat -moz-fixed as an alias for monospace within gfx. David, please let me know if you think we should be making changes within the style system to accomodate this in a different way and I will file a new bug to make those changes.
Attachment #8437370 - Flags: review?(cam)
Flags: needinfo?(dbaron)
Attachment #8437370 - Flags: review?(cam) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
Reproduced in Nightly 2014-06-09-mozilla-central-debug. Verified fixed FF 33.0a1 2014-06-13-mozilla-central-debug Win 7 x64.
Status: RESOLVED → VERIFIED
(In reply to John Daggett (:jtd) from comment #2) > This is an artifact of how -moz-fixed was handled prior to the fontlist > struct changes in bug 280443. When -moz-fixed was the sole generic in a > fontlist, it would set the font family to monospace and *also* set the size. > However, when included with other fonts, it would be passed untranslated > down to gfx and effectively ignored. Not sure the semantics of this "magic" > name were well thought about but for now, just treat -moz-fixed as an alias > for monospace within gfx. Treating -moz-fixed the same as monospace sounds fine.
Flags: needinfo?(dbaron)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: