[Fontconfig] Can we use base 16, and not 85, for ASCII charset representations?
behdad at behdad.org
Mon Sep 23 12:04:07 PDT 2013
-----BEGIN PGP SIGNED MESSAGE-----
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:
FcCompareCharSet (FcValue *v1, FcValue *v2)
return (double) FcCharSetSubtractCount (FcValueCharSet(v1),
And FcCharSetSubtractCount() docs say:
FcChar32 FcCharSetSubtractCount(const FcCharSet *a,const FcCharSet *b);
Returns the number of chars that are in a but not in b.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
-----END PGP SIGNATURE-----
More information about the Fontconfig