[Fontconfig] Font priority and locale settings

Eric Sagnes eric.sagnes at gmail.com
Wed Sep 7 13:05:37 UTC 2016

Sorry, the way I asked the question was misleading, fc-match was just a way to diagnose the problem.

The issue I am facing is that, even if Deja-vu is set to a higher priority than IPA font,
when the computer locale is set to ja_JP.UTF8, alphabet letters would be rendered with IPA font instead of Deja-vu.

What I am trying to achieve is to, with a locale set to ja_JP.UTF8, have alphabet rendered with Deja-vu and Japanese characters rendered with IPA font according to the set <prefer>ed order.

settings reminder:

    <family>DejaVu Serif</family>
    <family>Baekmuk Batang</family>


On Thu, Sep 01, 2016 at 12:00:02PM +0000, fontconfig-request at lists.freedesktop.org wrote:
> Yes, it is the expected behavior. the locale settings affects to FC_LANG
> property. you have two options to change this:
> 1) add a lang property to query. which is most common way and most
> applications does.
>     e.g. fc-match serif:lang=en
> 2) if you don't like 1) because it still affects the order of the whole
> list say, set FC_LANG env var to change the default language regardless of
> current locale.
>     e.g. FC_LANG=en fc-match serif

Eric Sagnes
サニエ エリック

More information about the Fontconfig mailing list