<div dir="ltr">Thanks.<div><br></div><div>There's also Chrome that wants to filter out bitmap fonts... Since FcFontSort() / Match() go through all fonts anyway, maybe a variant that takes a predicate function is useful. The predicate then can reject eg bitmap, or WOFF fonts...</div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">behdad<br><a href="http://behdad.org/" target="_blank">http://behdad.org/</a></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Dec 22, 2023 at 8:07 AM Akira TAGOH <<a href="mailto:akira@tagoh.org">akira@tagoh.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">It was brought up at<br>
<a href="https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/375" rel="noreferrer" target="_blank">https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/375</a><br>
<br>
Hmm, FcFontSort()... that is a tough problem. They use different<br>
matching functions in the first place. I sometimes think of a better<br>
way to get an inclusive/exclusive list of fonts which can't be done in<br>
FcFontSort() at the moment. that should be the same root cause of it.<br>
However, changing behavior may not be realistic. We may need a new API for that.<br>
<br>
On Fri, Dec 22, 2023 at 11:47 PM Behdad Esfahbod <<a href="mailto:behdad@behdad.org" target="_blank">behdad@behdad.org</a>> wrote:<br>
><br>
> Hi Akira,<br>
><br>
> Thanks for taking care of fontconfig for so long. :)<br>
><br>
> Excuse my ignorance... I'm curious who requested the wrapper property? I assume it's to ignore woff-encoded fonts for clients that don't support it? But that logic is flawed because of the pruning in FcFontSort()...<br>
><br>
> Cheers,<br>
> behdad<br>
> <a href="http://behdad.org/" rel="noreferrer" target="_blank">http://behdad.org/</a><br>
><br>
><br>
> On Fri, Dec 22, 2023 at 7:43 AM Akira TAGOH <<a href="mailto:akira@tagoh.org" target="_blank">akira@tagoh.org</a>> wrote:<br>
>><br>
>> Hi,<br>
>><br>
>> 2.15.0 has been released with many improvements and bug fixes. the<br>
>> most important news in this release is:<br>
>><br>
>> - New properties, "namedinstance" and "fontwrapper" added to cache<br>
>> - Add more language support<br>
>> - the cache version bumped to 9 because the lang index needed to be<br>
>> extended to 16 bit for the above change.<br>
>> - Update Case Folding properties for Unicode 15.1<br>
>><br>
>> The source code archives can be found here:<br>
>> <a href="https://www.freedesktop.org/software/fontconfig/release/" rel="noreferrer" target="_blank">https://www.freedesktop.org/software/fontconfig/release/</a><br>
>><br>
>> To check sum with sha256sum:<br>
>> cf204b89cc979e4377d5fe41a1ce53ba82e7b80d5f94a3294e43649a33d01027<br>
>> ChangeLog-2.15.0<br>
>> f5f359d6332861bd497570848fcb42520964a9e83d5e3abe397b6b6db9bcaaf4<br>
>> fontconfig-2.15.0.tar.gz<br>
>> 63a0658d0e06e0fa886106452b58ef04f21f58202ea02a94c39de0d3335d7c0e<br>
>> fontconfig-2.15.0.tar.xz<br>
>><br>
>><br>
>> If you find any issues, please open a ticket at:<br>
>> <a href="https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/new" rel="noreferrer" target="_blank">https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/new</a><br>
>><br>
>> Cheers,<br>
>> --<br>
>> Akira TAGOH<br>
<br>
<br>
<br>
-- <br>
Akira TAGOH<br>
</blockquote></div>