buggy font-family selection - disagrees with fontconfig

UNCONFIRMED
Unassigned

Status

()

Core
Layout: Text
UNCONFIRMED
5 years ago
5 years ago

People

(Reporter: Vincent Lefevre, Unassigned)

Tracking

Trunk
x86_64
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

5 years ago
Created attachment 629648 [details]
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.
(Reporter)

Comment 1

5 years ago
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.
You need to log in before you can comment on or make changes to this bug.