Skip to content

Instantly share code, notes, and snippets.

@Risto-Stevcev
Created April 15, 2023 12:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Risto-Stevcev/7f7162c1ac43d18c68828e3705d91781 to your computer and use it in GitHub Desktop.
Save Risto-Stevcev/7f7162c1ac43d18c68828e3705d91781 to your computer and use it in GitHub Desktop.
Font aliasing in linux (ie for Helvetica)
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<!--
On void, see /etc/fonts/conf.d/30-metric-aliases.conf
Sets the google font Arimo for sans-serif, and adds an alias for Helvetica
-->
<fontconfig>
<alias>
<family>sans-serif</family>
<prefer><family>Arimo</family></prefer>
</alias>
<match>
<test name="family"><string>Arial</string></test>
<edit name="family" mode="assign" binding="strong">
<string>Arimo</string>
</edit>
</match>
<match>
<test name="family"><string>Helvetica</string></test>
<edit name="family" mode="assign" binding="strong">
<string>Arimo</string>
</edit>
</match>
</fontconfig>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment