Closed Bug 578615 Opened 14 years ago Closed 14 years ago

line-height needs to use rounded value

Categories

(Core :: Layout, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 442139

People

(Reporter: jtd, Unassigned)

Details

Attachments

(1 file)

We appear to be placing text lines using multiples of the raw line-height value rather than the rounded value.  In other words, the calculation appears to be:

  y = round(line-height * # lines)

rather than 

  y = round(line-height) * # lines

The effect of this difference is that it produces gaps and unevenness when rendering lines of text with line-heights that don't convert to integer pixel values.  When the attached testcase is run, you'll see gaps at different places as the line-height is varied by amounts < 1px.

Originally posted on Typophile:
http://www.typophile.com/node/72215
This bug is old and has duplicates
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: