Closed Bug 981453 Opened 11 years ago Closed 11 years ago

Firefox ignores font-family order when FontConfig assign_replaced families are listed

Categories

(Firefox :: General, defect)

27 Branch
x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: orivej, Unassigned)

Details

Attachments

(3 files)

Attached file fonts.conf
I have set up FontConfig to replace Arial with Open Sans (and Times New Roman with Linux Libertine). This causes Firefox to render every font-family which mentions Arial in Open Sans, even if Arial comes after another installed font. To reproduce: - open attached test case; it should render in serif - save attached fonts.conf as ~/.config/fontconfig/fonts.conf (or in some other place searched by FontConfig); make sure 'fc-match Unknown' matches 'DejaVu Sans Mono' - restart Firefox - open the test case; now it erroneously renders in monospace
Attached file testcase.html
Summary: Firefox ignores font-family order when FontConfig replaced families are listed → Firefox ignores font-family order when FontConfig assign_replaced families are listed
I was using <edit name="family" mode="assign_replace"> where I should have had <edit name="family" mode="assign" binding="strong">, and this behaviour is a surprising but intended consequence of assign_replace.
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: