Created
June 15, 2014 04:39
-
-
Save eevee/c57e72e7f39a09c6f7d1 to your computer and use it in GitHub Desktop.
fontconfig to make source code pro fall back to monospace, not sans-serif
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- define font family for some fonts fontconfig doesn't know about --> | |
<alias> | |
<family>Source Code Pro</family> | |
<default><family>monospace</family></default> | |
</alias> | |
<alias> | |
<family>Droid Sans Mono</family> | |
<default><family>monospace</family></default> | |
</alias> | |
<alias> | |
<family>PowerlineSymbols</family> | |
<default><family>monospace</family></default> | |
</alias> | |
<!-- by default fontconfig assumes any unrecognized font is sans-serif, so --> | |
<!-- the fonts above now have /both/ families. fix this. --> | |
<!-- note that "delete" applies to the first match --> | |
<match> | |
<test name="family" compare="eq"> | |
<string>sans-serif</string> | |
</test> | |
<test name="family" compare="eq"> | |
<string>monospace</string> | |
</test> | |
<edit name="family" mode="delete"/> | |
</match> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment