Skip to content

Instantly share code, notes, and snippets.

@ubone ubone/fonts.conf
Last active Sep 13, 2018

Embed
What would you like to do?
standalone
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<!-- Put custom global fontconfig settings in this file. -->
<!-- Setting to 72 here makes the px to pt conversions work better -->
<match target="pattern">
<edit name="dpi" mode="assign">
<double>72</double>
</edit>
</match>
<!-- ## Base rendering settings ## -->
<match target="font">
<edit name="rgba" mode="assign">
<const>rgb</const>
</edit>
<edit name="hinting" mode="assign">
<bool>true</bool>
</edit>
<edit name="hintstyle" mode="assign">
<const>hintslight</const>
</edit>
<edit name="autohint" mode="assign">
<bool>false</bool>
</edit>
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
<edit name="lcdfilter" mode="assign">
<const>lcdlight</const>
</edit>
</match>
<!-- Use this file to define your custom font substitutions.
For each font to be replaced, duplicate the template below
and fill in with appropriate font names. -->
<!--
<match target="font">
<test name="family">
<string>FONT TO REPLACE 1</string>
</test>
<edit name="family" mode="assign">
<string>REPLACEMENT FONT 1</string>
</edit>
</match>
<match target="pattern">
<test name="family">
<string>FONT TO REPLACE 1</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>REPLACEMENT FONT 1</string>
</edit>
</match>
-->
<match target="pattern">
<test name="family">
<string>helvetica</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>helvetica lt std</string>
</edit>
</match>
<!-- You can define alternative default aliases, too. -->
<!-- ## serif ## -->
<alias>
<family>serif</family>
<prefer>
<family>Heuristica</family>
<family>Liberation Serif</family>
<family>Nimbus Roman</family>
<family>Tinos</family>
<family>TeX Gyre Termes</family>
<family>FreeSerif</family>
</prefer>
</alias>
<!-- ## sans-serif ## -->
<alias>
<family>sans-serif</family>
<prefer>
<family>Liberation Sans</family>
<family>Nimbus Sans</family>
<family>Arimo</family>
<family>TeX Gyre Heros</family>
<family>FreeSans</family>
</prefer>
</alias>
<!-- ## monospace ## -->
<alias>
<family>monospace</family>
<prefer>
<family>Liberation Mono</family>
<family>Nimbus Mono</family>
<family>Cousine</family>
<family>TeX Gyre Cursor</family>
<family>FreeMono</family>
</prefer>
</alias>
<!-- ## fantasy ## -->
<alias>
<family>fantasy</family>
<prefer>
<family>Signika</family>
</prefer>
</alias>
<!-- ## cursive ## -->
<alias>
<family>cursive</family>
<prefer>
<family>TeX Gyre Chorus</family>
<family>Chancery URW</family>
<family>Quintessential</family>
</prefer>
</alias>
<alias>
<family>arial narrow</family>
<prefer>
<family>Liberation Sans Narrow</family>
<family>Nimbus Sans Narrow</family>
<family>TeX Gyre Heros Cn</family>
</prefer>
</alias>
<alias>
<family>georgia</family>
<prefer>
<family>Gelasio</family>
</prefer>
</alias>
<alias>
<family>Wingdings</family>
<prefer>
<family>URWDings</family>
<family>New Dingbats</family>
</prefer>
</alias>
<alias>
<family>Calibri</family>
<prefer>
<family>Carlito</family>
</prefer>
</alias>
<alias>
<family>Cambria</family>
<prefer>
<family>Caladea</family>
</prefer>
</alias>
<alias>
<family>Century Gothic</family>
<prefer>
<family>TeX Gyre Adventor</family>
<family>URW Gothic</family>
</prefer>
</alias>
<alias>
<family>Bookman Old Style</family>
<prefer>
<family>TeX Gyre Bonum</family>
<family>URW Bookman</family>
</prefer>
</alias>
<alias>
<family>Monotype Corsiva</family>
<prefer>
<family>TeX Gyre Chorus</family>
<family>URW Chancery</family>
</prefer>
</alias>
<alias>
<family>Palatino Linotype</family>
<prefer>
<family>TeX Gyre Pagella</family>
<family>URW Palladio</family>
</prefer>
</alias>
<alias>
<family>Book Antiqua</family>
<prefer>
<family>TeX Gyre Pagella</family>
<family>URW Palladio</family>
</prefer>
</alias>
<alias>
<family>Century Schoolbook</family>
<prefer>
<family>TeX Gyre Schola</family>
<family>URW Century SchoolBook</family>
</prefer>
</alias>
<alias>
<family>verdana</family>
<prefer>
<family>liberation sans</family>
<family>Nimbus Sans</family>
<family>Arimo</family>
<family>TeX Gyre Heros</family>
<family>FreeSans</family>
</prefer>
</alias>
</fontconfig>
<!--
https://wiki.archlinux.org/index.php/Metric-compatible_fonts
https://github.com/bohoomil/fontconfig-ultimate/issues/191#issuecomment-289799221
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.