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?


<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<match target="font">
        <test name="lang" compare="contains">

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

  • 2
    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
  • I confirm the ~/.config/fontconfig/ path works for me – KING SABRI Nov 24 '20 at 20:58

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.