[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-fontconfig
Subject: [Fontconfig] how to configure a default font?
From: Laurence Darby <ldarby () tuffmail ! com>
Date: 2008-08-03 21:10:23
Message-ID: 20080803221023.e737a93f.ldarby () tuffmail ! com
[Download RAW message or body]
Hi,
I've got a couple of questions, firstly: I couldn't see a good way to
configure a default font. What I've ended up doing is the following in
~/.fonts.conf :
<match target="pattern">
<test qual="all" name="family" compare="not_contains">
<string>Arial</string>
</test>
<test qual="all" name="family" compare="not_contains">
<string>Times New Roman</string>
</test>
<test qual="all" name="family" compare="not_contains">
<string>Trebuchet MS</string>
</test>
[ Ad nauseum for every single other font on the system ]
<edit mode="assign_replace" name="family" binding="strong">
<string>Helvetica Neue</string>
</edit>
</match>
Is there a sensible way of doing this?
Secondly, I want to force Opera to not use Arial. It's propriatary
software that doesn't respect its own configuration. I did this using:
<alias>
<family>real_Ar14L</family>
<accept><family>Arial</family></accept>
</alias>
<match target="pattern">
<test qual="all" name="family" compare="not_contains">
<string>real_Ar14L</string>
</test>
etc as above.
which results in
$ fc-match Arial
hlr_____.pfb: "Helvetica Neue" "Regular"
$ fc-match real_Ar14L
arial.ttf: "Arial" "Normal"
That fixes Opera. But is there a way to get the name real_Ar14L into
the list output by fc-list, or better, just rename Arial so "Arial"
isn't in the list? That would probably also fix Acrobat too...
Thanks,
Laurence
_______________________________________________
Fontconfig mailing list
Fontconfig@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/fontconfig
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic