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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .