Skip to content

Instantly share code, notes, and snippets.

@eevee
Created June 15, 2014 04:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save eevee/c57e72e7f39a09c6f7d1 to your computer and use it in GitHub Desktop.
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
<!-- 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