Skip to content

Instantly share code, notes, and snippets.

@matinrco
Created December 18, 2021 21:22
Show Gist options
  • Save matinrco/2883da390a26d4dee616376247b2e6ef to your computer and use it in GitHub Desktop.
Save matinrco/2883da390a26d4dee616376247b2e6ef to your computer and use it in GitHub Desktop.
arch/manjaro persian font fix
  • Install vazir-fonts & vazir-code-fonts

  • Create or update $HOME/.config/fontconfig/fonts.conf with the following content:

    <?xml version='1.0'?>
    <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
    <fontconfig>
        <!-- Fallback fonts preference order -->
        <alias>
            <family>sans-serif</family>
            <prefer>
                <family>Vazir</family>
            </prefer>
        </alias>
        <alias>
            <family>monospace</family>
            <prefer>
                <family>Vazir Code Hack</family>
            </prefer>
        </alias>
    </fontconfig>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment