[Fontconfig] Can we use base 16, and not 85, for ASCII charset representations?
W. Trevor King
wking at tremily.us
Mon Sep 23 11:47:59 PDT 2013
On Mon, Sep 23, 2013 at 02:25:45PM -0400, Behdad Esfahbod wrote:
> Also, make it easy to ask for fonts having a specific character by
> making it easy to parse a simple set, something like this for
> example:
>
> $ fc-match :charset={06cc,064a}
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>”. “all fonts containing
a charset that exactly matches <charset>” doesn't seem as useful, but
perhaps “all fonts containing any of <charset>” may be useful.
Borrowing from set theory, how about:
:charset={06cc,064a}
All fonts whose charset exactly matches {06cc,064a}.
:charset=n{06cc,064a}
The intersection of {06cc,064a} and the font's charset is not
empty (all fonts containing any of {06cc,064a})
:charset=>{06cc,064a}
{06cc,064a} is a subset of the font's charset (all fonts
containing at least {06cc,064a})
:charset=<{06cc,064a}
{06cc,064a} is a superset of the font's charset (all fonts
containing no characters outside of {06cc,064a})
I'm mostly interested in the subset query (>{XXXX,…}). Do folks want
any of the others?
Cheers,
Trevor
--
This email may be signed or encrypted with GnuPG (http://www.gnupg.org).
For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/fontconfig/attachments/20130923/8920e9b0/attachment.pgp>
More information about the Fontconfig
mailing list