<div dir="ltr">How did you do that? the separator is only shown by the debugging output like FcPatternPrint() though, it isn't expected to reuse it for any other purposes.</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 29, 2016 at 11:19 AM, Lawrence D'Oliveiro <span dir="ltr"><<a href="mailto:ldo@geek-central.gen.nz" target="_blank">ldo@geek-central.gen.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Having found a FreeType font, Fontconfig provides the call<br>
FcFreeTypeQueryFace, which will construct a very elaborate pattern that,<br>
I assumed, would match exactly that font again.<br>
<br>
However, it never seemed to work: trying to use that pattern to search<br>
for fonts would always fail with no matches.<br>
<br>
I figured out that the problem seems to come from the inclusion<br>
of the “lang” and “charset” criteria in the returned pattern: the<br>
values for these tend to consist of long lists of items separated by “|”<br>
characters. But remove them, and the resulting pattern will correctly<br>
find the font again.<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>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Akira TAGOH</div>
</div>