Skip to content

Instantly share code, notes, and snippets.

@forabi
Created June 14, 2015 18:20
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 forabi/3c9e0e6450b9fb2b627c to your computer and use it in GitHub Desktop.
Save forabi/3c9e0e6450b9fb2b627c to your computer and use it in GitHub Desktop.
Substitute Linux default font family for Arabic with Helvetica World. Save as /etc/fonts/conf.d/99-arabic.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- $XDG_CONFIG_HOME/fontconfig/fonts.conf for per-user font configuration -->
<fontconfig>
<match>
<test name="lang" compare="contains">
<string>ar</string>
</test>
<test name="family" compare="not_eq">
<string>monospace</string>
</test>
<edit name="family" mode="prepend">
<string>Helvetica World</string>
</edit>
</match>
</fontconfig>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment