Skip to content

Instantly share code, notes, and snippets.

@Leonidas-from-XIV
Created August 7, 2010 11:23
Show Gist options
  • Save Leonidas-from-XIV/512701 to your computer and use it in GitHub Desktop.
Save Leonidas-from-XIV/512701 to your computer and use it in GitHub Desktop.
fontconfig adjustment to reject bitmap fonts
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/local.conf file to configure system font access -->
<fontconfig>
<!-- Replace Courier with a better-looking font -->
<match target="pattern" name="family">
<test name="family" qual="any"><string>Courier</string></test>
<edit name="family" mode="assign">
<!-- Other choices - Courier New, Luxi Mono -->
<!-- Bitstream Vera Sans Mono -->
<string>Courier New</string>
</edit>
</match>
<!-- Reject bitmap fonts in favour of Truetype, Postscript, etc. -->
<selectfont>
<rejectfont>
<pattern>
<patelt name="scalable"><bool>false</bool></patelt>
</pattern>
</rejectfont>
</selectfont>
</fontconfig>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment