-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 13-09-23 03:00 PM, W. Trevor King wrote: > On Mon, Sep 23, 2013 at 02:52:01PM -0400, Behdad Esfahbod wrote: >> On 13-09-23 02:47 PM, W. Trevor King wrote: >>> On Mon, Sep 23, 2013 at 02:25:45PM -0400, Behdad Esfahbod wrote: >>> >>> I haven't had time to look this up yet, but I imagine fontconfig >>> currently only matches charsets exactly. It would be nice to search >>> for “all fonts containing at least <charset>”. >> >> Your imagination differs from reality :). > > Oh good :). Does that mean that the logic is already what I want? Yes. fcobjs.h has this: FC_OBJECT (CHARSET, FcTypeCharSet, FcCompareCharSet) And FcCompareCharSet is: static double FcCompareCharSet (FcValue *v1, FcValue *v2) { return (double) FcCharSetSubtractCount (FcValueCharSet(v1), FcValueCharSet(v2)); } And FcCharSetSubtractCount() docs say: FcChar32 FcCharSetSubtractCount(const FcCharSet *a,const FcCharSet *b); DESCRIPTION Returns the number of chars that are in a but not in b. - -- behdad http://behdad.org/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlJAkKcACgkQn+4E5dNTERXJdwCfapMLR1FkN6suuxgDcVy2nnA4 JcYAn1xLmYL/ULYp079fudsQx6DY4SNy =BDrk -----END PGP SIGNATURE----- _______________________________________________ Fontconfig mailing list Fontconfig@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/fontconfig