<div dir="ltr">Yes, it is the expected behavior. the locale settings affects to FC_LANG property. you have two options to change this:<div><br></div><div>1) add a lang property to query. which is most common way and most applications does.</div><div>    e.g. fc-match serif:lang=en</div><div><br></div><div>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.</div><div>    e.g. FC_LANG=en fc-match serif</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 31, 2016 at 9:44 PM, Eric Sagnes <span dir="ltr"><<a href="mailto:eric.sagnes@gmail.com" target="_blank">eric.sagnes@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I noticed that `fc-match` result is influenced by locale settings.<br>
<br>
For example with the following configuration snippet:<br>
<br>
```<br>
  <alias><br>
    <family>serif</family><br>
    <prefer><br>
      <family>DejaVu Serif</family><br>
      <family>IPAPMincho</family><br>
      <family>Baekmuk Batang</family><br>
    </prefer><br>
  </alias><br>
```<br>
<br>
If the locale is `en_US.UTF8`, `DejaVu Serif` will be correctly matched as the default font:<br>
<br>
```<br>
$ LANG=en_US.UTF8 fc-match serif -s | head -n 5<br>
DejaVuSerif.ttf: "DejaVu Serif" "Book"<br>
DejaVuSerif-Bold.ttf: "DejaVu Serif" "Bold"<br>
DejaVuSerif-Italic.ttf: "DejaVu Serif" "Italic"<br>
DejaVuSerif-BoldItalic.ttf: "DejaVu Serif" "Bold Italic"<br>
ipamp.ttf: "IPAPMincho" "Regular"<br>
```<br>
<br>
On the other hand, if the locale is set to `ja_JP.UTF8`, `IPAPMincho` font will be preferred over `DejaVu Serif`:<br>
<br>
```<br>
$ LANG=ja_JP.UTF8 fc-match serif -s | head -n 5<br>
ipamp.ttf: "IPA P明朝" "Regular"<br>
DejaVuSerif.ttf: "DejaVu Serif" "Book"<br>
DejaVuSerif-Bold.ttf: "DejaVu Serif" "Bold"<br>
DejaVuSerif-Italic.ttf: "DejaVu Serif" "Italic"<br>
DejaVuSerif-BoldItalic.ttf: "DejaVu Serif" "Bold Italic"<br>
```<br>
<br>
Is this an expected behavior?<br>
In this case, is there a way to have the preferred order respected unregarding of locale settings?<br>
<br>
Cheers,<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Eric Sagnes<br>
サニエ エリック<br>
______________________________<wbr>_________________<br>
Fontconfig mailing list<br>
<a href="mailto:Fontconfig@lists.freedesktop.org">Fontconfig@lists.freedesktop.<wbr>org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/fontconfig" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/fontconfig</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Akira TAGOH</div>
</div>