Yes, I was thinking a similar thing. Thank you for bringing it up and sharing the idea. On Sat, Dec 23, 2023 at 12:11 AM Behdad Esfahbod <behdad@xxxxxxxxxx> wrote: > > Thanks. > > 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... > > behdad > http://behdad.org/ > > > On Fri, Dec 22, 2023 at 8:07 AM Akira TAGOH <akira@xxxxxxxxx> wrote: >> >> It was brought up at >> https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/375 >> >> Hmm, FcFontSort()... that is a tough problem. They use different >> matching functions in the first place. I sometimes think of a better >> way to get an inclusive/exclusive list of fonts which can't be done in >> FcFontSort() at the moment. that should be the same root cause of it. >> However, changing behavior may not be realistic. We may need a new API for that. >> >> On Fri, Dec 22, 2023 at 11:47 PM Behdad Esfahbod <behdad@xxxxxxxxxx> wrote: >> > >> > Hi Akira, >> > >> > Thanks for taking care of fontconfig for so long. :) >> > >> > 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()... >> > >> > Cheers, >> > behdad >> > http://behdad.org/ >> > >> > >> > On Fri, Dec 22, 2023 at 7:43 AM Akira TAGOH <akira@xxxxxxxxx> wrote: >> >> >> >> Hi, >> >> >> >> 2.15.0 has been released with many improvements and bug fixes. the >> >> most important news in this release is: >> >> >> >> - New properties, "namedinstance" and "fontwrapper" added to cache >> >> - Add more language support >> >> - the cache version bumped to 9 because the lang index needed to be >> >> extended to 16 bit for the above change. >> >> - Update Case Folding properties for Unicode 15.1 >> >> >> >> The source code archives can be found here: >> >> https://www.freedesktop.org/software/fontconfig/release/ >> >> >> >> To check sum with sha256sum: >> >> cf204b89cc979e4377d5fe41a1ce53ba82e7b80d5f94a3294e43649a33d01027 >> >> ChangeLog-2.15.0 >> >> f5f359d6332861bd497570848fcb42520964a9e83d5e3abe397b6b6db9bcaaf4 >> >> fontconfig-2.15.0.tar.gz >> >> 63a0658d0e06e0fa886106452b58ef04f21f58202ea02a94c39de0d3335d7c0e >> >> fontconfig-2.15.0.tar.xz >> >> >> >> >> >> If you find any issues, please open a ticket at: >> >> https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/new >> >> >> >> Cheers, >> >> -- >> >> Akira TAGOH >> >> >> >> -- >> Akira TAGOH -- Akira TAGOH