Closed Bug 941629 Opened 12 years ago Closed 12 years ago

inaccurate full-justification of lines with automatic hyphens combined with CSS letter-spacing

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla28

People

(Reporter: jfkthame, Assigned: jfkthame)

References

()

Details

(Whiteboard: [good first verify])

Attachments

(2 files)

See testcase in the URL. Screenshot of rendering on OS X is attached. Expected: all the line-final hyphens should align vertically, and should match the line ends non-hyphenated lines. Actual: the automatic hyphens on lines 1, 3 and 4 project further than the explicit hyphen from "overly-narrow" on line 2, and the unhyphenated text on line 5.
This happens because PropertyProvider::SetupJustificationSpacing() fails to take account of any letter-spacing that should be in effect when adding the hyphen width. With this patch, the hyphens in the testcase all line up nicely.
Attachment #8336077 - Flags: review?(roc)
Assignee: nobody → jfkthame
OS: Mac OS X → All
Hardware: x86 → All
Target Milestone: --- → mozilla28
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [good first verify]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: