Closed Bug 1122020 Opened 9 years ago Closed 9 years ago

textRun bounding box does not take account of glyph positioning (x/y offsets in detailedGlyph records)

Categories

(Core :: Graphics: Text, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla38

People

(Reporter: jfkthame, Assigned: jfkthame)

Details

Attachments

(1 file)

When handling detailedGlyph records, the code in gfxFont::Measure carefully sets up glyphPt for the adjusted position of a glyph, but then fails to apply it to the glyph's bounding box. :(

Example:

  data:text/html,<div style="font:100px/2 Gentium Basic">
                 x&%23x301;&%23x301;&%23x301;&%23x301;

should display an "x" with 4 acute accents stacked above, but only the first two (and a fragment) are visible because of the unadjusted bounding box.
Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
https://hg.mozilla.org/mozilla-central/rev/1dc205923d11
Status: ASSIGNED → RESOLVED
Closed: 9 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: