I think maybe a better solution (and the right way to close the linked bug) is to modify the above lines to:
Code:
<!-- Map generics to specifics -->
<!-- PostScript -->
<match target="pattern">
<test name="family">
<string>Helvetica</string>
</test>
<test name="anymetrics" qual="all" compare="not_eq">
<bool>true</bool>
</test>
<edit name="family" mode="append">
<string>Nimbus Sans L</string>
</edit>
</match>
<match target="pattern">
<test name="family">
<string>Times</string>
</test>
<test name="anymetrics" qual="all" compare="not_eq">
<bool>true</bool>
</test>
<edit name="family" mode="append">
<string>Nimbus Roman No9 L</string>
</edit>
</match>
<match target="pattern">
<test name="family">
<string>Courier</string>
</test>
<test name="anymetrics" qual="all" compare="not_eq">
<bool>true</bool>
</test>
<edit name="family" mode="append">
<string>Nimbus Mono L</string>
</edit>
</match>
This preserves the Postscript -> Nimbus font aliases in the case where metric-compatibility is desired and suppresses them when it isn't (i.e., anymetrics=true). This gets me:
Code:
$ fc-match times
LiberationSerif-Regular.ttf: "Liberation Serif" "Regular"
Now, since the Liberation Serif font is actually too small on my screen (a DPI issue?), I prefer the DejaVu Serif font when metrics aren't an issue. So I added the following to ~/.fonts.conf:
Code:
<match target="pattern">
<test name="family">
<string>Times</string>
</test>
<test name="anymetrics" qual="all" compare="eq">
<bool>true</bool>
</test>
<edit name="family" mode="assign">
<string>DejaVu Serif</string>
</edit>
</match>
And:
Code:
$ fc-match times
DejaVuSerif.ttf: "DejaVu Serif" "Book"
This seems to be exactly what I want.
Bookmarks