Open Bug 761022 Opened 12 years ago Updated 2 years ago

buggy font-family selection - disagrees with fontconfig

Categories

(Core :: Layout: Text and Fonts, defect)

x86_64
Linux
defect

Tracking

()

UNCONFIRMED

People

(Reporter: vincent-moz, Unassigned)

Details

Attachments

(1 file)

Attached image font.png
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/15.0 Firefox/15.0a1
Build ID: 20120603030523

Steps to reproduce:

Open https://developer.mozilla.org/en/CSS/font


Actual results:

An ugly bitmap font is chosen for the main text (see attached snapshot).


Expected results:

The font matched by fontconfig should have been chosen. The fontfinder extension says:

font-family (stack): "Lucida Grande","Lucida Sans Unicode",Lucida,Arial,Helvetica,sans-serif
Font being rendered: "Lucida Grande"

and fontconfig:

$ fc-match 'Lucida Grande'
Vera.ttf: "Bitstream Vera Sans" "Roman"

So, Bitstream Vera Sans should be used. But instead I get a bitmap font.
What happens is that Firefox chooses "Lucida" here (contrary to what fontfinder says), because removing the "Lucida" fallback solves the problem. And indeed, "Lucida" alone is a bitmap font:

$ fc-match Lucida
luRS12-ISO8859-1.pcf.gz: "Lucida" "Sans"

It seems that Bitstream Vera Sans is a fallback for fc-match, because Lucida Grande doesn't exist.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: