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.

i am new in linux, my question simply is: how i can force ubuntu to use font A instead font B in all application and web page? for example there is a web page that uses Tahoma Font, but I want my browser use ubuntu font istead tahoma automatically,

share|improve this question
1  
What browser are you using? –  Evandro Silva Oct 31 '12 at 20:45
    
it is an example, i mean all all applications, it can be chromium or libreoffice word or inkscape... –  Nasser.Man Nov 1 '12 at 6:54
add comment

1 Answer 1

I use this content in ~/.fonts.conf to replace several fonts with Ubuntu

<!--?xml version="1.0"?>-->
<!--DOCTYPE fontconfig SYSTEM "fonts.dtd">-->
<!-- ~/.fonts.conf for per-user font configuration -->
<fontconfig>
<alias>
    <family>sans-serif</family>
    <prefer>
        <family>Ubuntu</family>
    </prefer>
</alias>
<alias>
    <family>monospace</family>
    <prefer>
        <family>Ubuntu Mono</family>
    </prefer>
</alias>
<match>
    <test name="family"><string>Arial</string></test>
    <edit name="family" mode="prepend" binding="strong">
        <string>Ubuntu</string>
        <string>Arial</string>
    </edit>
</match>
<match>
    <test name="family"><string>helvetica</string></test>
    <edit name="family" mode="prepend" binding="strong">
        <string>Ubuntu</string>
        <string>Helvetica</string>
    </edit>
</match>

</fontconfig>
share|improve this answer
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.