Closed Bug 13712 Opened 26 years ago Closed 26 years ago

[PP] Small differences in font metrics between platforms

Categories

(Core :: CSS Parsing and Computation, defect, P3)

PowerPC
Mac System 8.5
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: pierre, Assigned: dcone)

Details

Attachments

(1 file)

This bug has been detected while fixing #11862. To reproduce: - Open the following link on a Win32 AppRunner: http://bugzilla.mozilla.org/showattachment.cgi?attach_id=1237 - Open the attached jpg image on the same machine. This jpg has been captured on a Macintosh after #11862 had been fixed ==> Look how the red boxes have a slightly different height between platforms. It looks like the Mac is just one pixel smaller on each box. In fact, unlike what I wrote in the summary line, I'm not absolutely sure that the problem comes from the font metrics. It's most likely a problem with the font ascent but it may also come from somewhere else. For instance, I know that at some point, and because of differences between toolboxes on the different platforms, the Mac wasn't drawing the exact same squares and polygons as Windows.
Component: Layout → Style System
Attached image Image captured on Mac
Changing component to Style System
QA Contact: petersen → chrisd
Setting QA Contact to <chrisd@netscape.com>, like on #11862
I'm having a second thought about it and I'm wondering now whether this is really a bug. CSS allows us to have a much finer control over the display but are we supposed to get the exact same display across platforms? After all, maybe the fonts we are using on Mac and Win32 have a one pixel difference somewhere. CCing peterl.
No, nobody should expect the EXACT same font metrics accross platforms. The fonts themselves will vary by platform, vendor, platform, and font rendering technology. A 1 pixel difference here and there is expected. Especially dealing with font-specific metrics like 'ex' units. Now, 'em' units are currently defined as being the 'computed value' of the font size, not the 'actual value', so they should be consistent accross platforms, as should units like inches. Note that the ratio of "real world" units to pixels will vary, be sure that is taken into account. This issue however, looks like it may be due to rounding errors in the rendering contexts.
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Alot of rounding errors were fixed.. I think all of them.
Status: RESOLVED → VERIFIED
Based on comments in bug, verifying this bug fixed. Please reopen if you disagree.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: