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)
Tracking
()
VERIFIED
FIXED
People
(Reporter: pierre, Assigned: dcone)
Details
Attachments
(1 file)
|
12.41 KB,
image/jpeg
|
Details |
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.
| Reporter | ||
Updated•26 years ago
|
Component: Layout → Style System
| Reporter | ||
Comment 1•26 years ago
|
||
| Reporter | ||
Comment 2•26 years ago
|
||
Changing component to Style System
| Reporter | ||
Updated•26 years ago
|
QA Contact: petersen → chrisd
| Reporter | ||
Comment 3•26 years ago
|
||
Setting QA Contact to <chrisd@netscape.com>, like on #11862
| Reporter | ||
Comment 4•26 years ago
|
||
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.
Comment 5•26 years ago
|
||
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.
| Assignee | ||
Updated•26 years ago
|
Status: NEW → ASSIGNED
| Assignee | ||
Updated•26 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 6•26 years ago
|
||
Alot of rounding errors were fixed.. I think all of them.
Updated•26 years ago
|
Status: RESOLVED → VERIFIED
Comment 7•26 years ago
|
||
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.
Description
•