Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I can specify the default font family used to display a particular language in X by editing .fonts.conf in my user directory (or editing the global /etc/fonts/fonts.conf). However, I've not been able to force a particular font size in the same way.

For example, the following forces the Russian language to be displayed in Linux Libertine:

<fontconfig>
    <match>
        <test name="lang">
            <string>rus</string>
        </test>
         <edit mode="prepend" name="family">
            <string>Linux Libertine</string>
        </edit>
    </match>
</fontconfig>

I have tried adding the following XML tag, but it does not work:

         <edit mode="assign" name="size">
             <int>18</int>
         </edit>
share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

You can try re-using this my snippet which increases font size of specified font by a given factor:

<!--
    Scaling a chosen font with Fontconfig.
    By poige, 2008.
-->
<match target="font">
    <test name="family">
        <string>Liberation Sans</string>
    </test>
    <edit name="pixelsize" mode="assign">
        <times><name>pixelsize</name>, <double>1.1</double></times>
    </edit>
</match>
share|improve this answer
    
Changing the tag <size> to <pixelsize> was enough to get my current .fonts.conf to work. –  SigueSigueBen Jun 19 '12 at 14:22
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.