If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

[@font-face] positioning of text with downloaded fonts differs from system fonts

RESOLVED FIXED in mozilla1.9.2a1

Status

()

Core
Graphics
P3
normal
RESOLVED FIXED
9 years ago
9 years ago

People

(Reporter: jtd, Assigned: dbaron)

Tracking

Trunk
mozilla1.9.2a1
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [fixed by patch in 467084])

Attachments

(3 attachments)

(Reporter)

Description

9 years ago
Created attachment 342035 [details]
testcase, using downloadable font version of Ahem

When the same font is used both as a locally available font and as a downloadable font, the positioning of text varies.

Steps:

1. Download the testcases into layout/reftests/fonts
     - or -
   Copy the testcases to a folder and put a copy of Ahem in that folder

2. Copy Ahem.ttf into a folder within ~/Library/Fonts

3. Restart trunk build

4. In two tabs, load the two attached testcases

Result: the positioning of the red rectangle varies slightly
(Reporter)

Comment 1

9 years ago
Created attachment 342038 [details]
testcase, using local version of Ahem
(Reporter)

Updated

9 years ago
Priority: -- → P3
(Reporter)

Updated

9 years ago
Assignee: nobody → jdaggett

Comment 2

9 years ago
Created attachment 342062 [details]
alternative test case (with Ahem)

Side by side: left: using @font-face; right using the font installed on the system - the 2 blocks should be identical.
This testcase uses a data url for the font (need to set gfx.downloadable_fonts.enforce_same_site_origin to false)

Also available with downloadable font from
http://dev.l-c-n.com/css3/font-face/baseline-test2.html

-----
The odd thing I've noticed: if the downloaded font is used more than once, in separate block level elements, then it displays correctly:
http://dev.l-c-n.com/css3/font-face/baseline-test2b.html
(Reporter)

Updated

9 years ago
Summary: positioning of text with downloaded fonts differs from system fonts → [@font-face] positioning of text with downloaded fonts differs from system fonts
Depends on: 467084
(In reply to comment #2)
> Created an attachment (id=342062) [details]
> alternative test case (with Ahem)

The patch attached to bug 467084 makes this testcase pass.
OS: Mac OS X → All
Hardware: PC → All
(Assignee)

Comment 4

9 years ago
Yeah, the patch there should fix this; taking bug.
Assignee: jdaggett → dbaron
Status: NEW → ASSIGNED
Whiteboard: [fixed by patch in 467084]
(Assignee)

Comment 5

9 years ago
Fixed on mozilla-central by bug 467084.  That still needs to land on 1.9.1, though.
Status: ASSIGNED → RESOLVED
Last Resolved: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.2a1
You need to log in before you can comment on or make changes to this bug.