Skip to content

Instantly share code, notes, and snippets.

@eevee
Last active December 6, 2018 10:38
Show Gist options
  • Save eevee/10335903 to your computer and use it in GitHub Desktop.
Save eevee/10335903 to your computer and use it in GitHub Desktop.
fontconfig for comic neue
<alias>
<family>cursive</family>
<prefer>
<family>Comic Neue</family>
</prefer>
</alias>
<!-- comic neue is missing a few glyphs and fontconfig thinkgs it's -->
<!-- unsuitable for english text, oops! fix this forcibly. -->
<!-- once the font is fixed, the above rule is good enough -->
<match>
<test name="lang" compare="contains"><string>en</string></test>
<test name="family"><string>cursive</string></test>
<edit name="lang" mode="delete_all"></edit>
<edit name="family" mode="prepend"><string>Comic Neue</string></edit>
</match>
<!-- default for comic neue so it knows where to look for missing glyphs -->
<alias>
<family>Comic Neue</family>
<default><family>cursive</family></default>
</alias>
<!-- Replace Comic Sans with Comic Neue bold -->
<match target="pattern">
<test qual="any" name="family"><string>Comic Sans MS</string></test>
<edit name="family" mode="assign" binding="same"><string>Comic Neue</string></edit>
<edit name="style" mode="assign" binding="weak"><string>Bold</string></edit>
</match>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment