Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

share|improve this question
add comment

2 Answers 2

up vote 3 down vote accepted

<!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.

share|improve this answer
    
Thanks man, that's it :D –  Reda Lazri Dec 9 '10 at 8:38
add comment

I believe the "fallback font" is called Unifont. I'm not sure you can change the fallback font itself, but you can always change the default font to Tahoma.

share|improve this answer
1  
You can change the fallback font, but fontconfig is rather complicated. –  JanC Nov 18 '10 at 10:24
    
No, I want to stick with the new font and use Tahoma for arabic. –  Reda Lazri Nov 23 '10 at 14:42
    
@Clay Smalley: your answer doesn't attempt to address the OP's question. Essentially you didn't let something small, such as lacking knowledge on the subject matter, dissuade you from posting an answer. In this situation, less is more..., or preferably, just post a comment. –  TechZilla Feb 28 '13 at 15:15
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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