6

The Arabic language in the new Ubuntu font is missing, so it has to fallback to the standard font, but the problem is that the standard font isn't good, and I want to replace it with Tahoma.

Is there a way to do that or it is built into the font itself?

5

<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
        <test name="lang" compare="contains">
                <string>ar</string>
        </test>
        <alias>
                <family>sans-serif</family>
                <prefer>
                        <family>Tahoma</family>
                </prefer>
        </alias>
</match>
</fontconfig>

Stick that in your ~/.fonts.conf and everything written in Arabic should use Tahoma.

  • I'm glad I found this. I was looking for something similar. The XML file is still valid, however the ~/.fonts.conf file is deprecated. Newer distros expect these conf files to reside in ~/.config/fontconfig/ – Teoulas Jan 12 '17 at 17:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.