Created
February 25, 2018 04:02
-
-
Save AnwarShah/033246bc1f1cfa610858def56f16c08a to your computer and use it in GitHub Desktop.
Replace thin fonts with ultralight using fontconfig
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
<?xml version='1.0'?> | |
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> | |
<fontconfig> | |
<!-- replace thin fonts for fira with ultralight, since thin is too light --> | |
<match target="font"> | |
<test name="family" compare="contains"> | |
<string>Fira Sans</string> | |
</test> | |
<test name="weight" compare="less_eq"> | |
<const>thin</const> | |
</test> | |
<edit name="weight" mode="assign" binding="same"> | |
<const>ultralight</const> | |
</edit> | |
</match> | |
</fontconfig> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We can also use
<int>
for theweight
.