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)
Core
Layout: Text and Fonts
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.
Assignee | ||
Comment 1•12 years ago
|
||
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 | ||
Updated•12 years ago
|
Assignee: nobody → jfkthame
Attachment #8336077 -
Flags: review?(roc) → review+
Assignee | ||
Comment 2•12 years ago
|
||
OS: Mac OS X → All
Hardware: x86 → All
Target Milestone: --- → mozilla28
Comment 3•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Whiteboard: [good first verify]
You need to log in
before you can comment on or make changes to this bug.
Description
•