<div dir="ltr">Well, that is those are different API and running under the different code. those doesn't guarantee the same result even if giving the same pattern. it's rather unlikely since FcFontSort() expects to run after FcConfigSubstitute() and FcDefaultSubstutite() that modifies the pattern. so it's exactly not same input.<div><br></div><div>Exactly speaking more, that is the implementation issue in FcFontList(). that said, all of configuration affects to the result of FcFontSort(), guaranteeing that on both APIs may be not a big deal IMHO. I don't know what you are trying with it though.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 1, 2015 at 6:18 PM, Fabian Greffrath <span dir="ltr"><<a href="mailto:fabian@greffrath.com" target="_blank">fabian@greffrath.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi again, Akira,<br>
<span class=""><br>
Am Dienstag, den 01.09.2015, 16:16 +0900 schrieb Akira TAGOH:<br>
> If you add any patterns about the glyph coverage, you're right and<br>
> fontconfig will behaves like that. otherwise there should be no<br>
> different in score between both fonts as your example did.<br>
<br>
</span>both code paths undergo two steps, and the second step is identical in<br>
both paths:<br>
<br>
Path 1: FcFontList() "outline=true" -> FcFontSetSort() "family=URW Palladio L"<br>
Path 2: FcFontSort() "outline=true" -> FcFontSetSort() "family=URW Palladio L"<br>
<br>
Apparently, fontconfig already sorts p052023l.pfb higher than<br>
uplri8a.pfb in the first step of the second path, although the only<br>
requested pattern is "outline=true".<br>
<br>
It may have its reasons for this, but I don't understand why the re<br>
-ordering of the font sets with "family=URW Palladio L" as the only<br>
pattern leads to different results at the end of both code paths.<br>
<span class="HOEnZb"><font color="#888888"><br>
- Fabian<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Akira TAGOH</div>
</div>