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?

1 Answer 1


<!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, 2017 at 17:05
  • I confirm the ~/.config/fontconfig/ path works for me
    Nov 24, 2020 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.