Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:

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

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

         <edit mode="assign" name="size">
share|improve this question
up vote 3 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>
    <edit name="pixelsize" mode="assign">
        <times><name>pixelsize</name>, <double>1.1</double></times>
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

Your Answer


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.