You are not logged in.
Hello all,
I just downloaded a pdf that has some fonts which are not included in my font selection. evince tells me that their names are "CourierNewPSMT" and "CourierNewPS-BoldMT". Unfortunately, the font manager seems to think that it is a good idea to substitute "Liberation Mono" (a monospace font!). I think that a pdf containing only monospace fonts is rather annoying, so I would like to substitute "Liberation Sans" instead. To this end I created a file "~/.config/font-manager/local.conf" containing
the following xml code:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<test qual="any" name="family">
<string>CourierNewPSMT</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>Liberation Sans</string>
</edit>
</match>
</fontconfig>I restarted evince, I noticed that the file is read (evince complains if the syntax is wrong), but unfortunately the substitution remains the same.
Does anyone know how to correctly substitute fonts using font-manager?
Last edited by x2b (2013-09-03 14:32:15)
Offline
An example fontconfig rule:
<match>
<test name="family"><string>Trebuchet</string></test>
<edit mode="assign" name="family" binding="strong">
<string>Trebuchet MS</string>
</edit>
</match>Offline
Well I tried this:
<match>
<test name="family"><string>CourierNewPSMT</string></test>
<edit mode="assign" name="family" binding="strong">
<string>Liberation Sans</string>
</edit>
</match>But the font is still subsituted by "Liberation Mono". I am unsure whether this night not be a problem specific to evince: If I type in
fc-match "CourierNewPSMT"on a terminal then the response is
LiberationSans-Regular.ttf: "Liberation Sans" "Regular".
Offline
It might be e.g. "Courier New PSMT" instead. Might be able to see with:
FC_DEBUG=1 evince blah.pdfOffline
Ok, it was "Courier New", thank you, problem solved
Offline