fc-query output
- To: FontConfig List <fontconfig@xxxxxxxxxxxxxxxxxxxxx>
- Subject: fc-query output
- From: Dave Pawson <dave.pawson@xxxxxxxxx>
- Date: Wed, 14 Sep 2011 08:15:30 +0100
- Delivered-to: fontconfig@xxxxxxxxxxxxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=guDDXyv5GHxiM0BWAE2CER2Qbm5pIvA+ZszrDii9dh8=; b=Xj7xDGtS7s0EfNBu8XR/vg/6CI/KQ9DGo5lx3X6CY6EFKh2p7X/H6J9ju0L1qpcDmZ AeDYY1UwJLabdAoURIx2Qwn4xPH2NAyproHyRs1pmLo0FNwgjrQfW9N+3kh2Xi8NGddy 3Ifzc8NozQFcB7lZUkR7gOscrfsP5BTYB2s5A=
I'm trying to learn a little more about fonts on my Linux box
for use with xsl-fo.
My current problem is trying to find out if a Unicode code point is
present in any given font.
fc-query dumps a (btree?) list of the code points supported (AFAICT).
I'm looking for a way of testing if U+1234 is present in font xxx.otf
so that I give a yes/no if the code point is present in this font?k
I can capture the charset: section of fc-query output
but I'm looking for an algorithm /explanation of the format of the section?
E.g for one of my fonts...
charset:
0000: 00000000 ffffffff ffffffff 7fffffff 00000000 ffffdfef
bfffffff bfffffff
0001: 00000000 00020000 000c0006 61000003 00040000 00000000
00000000 00000000
0002: 00000000 00000000 00000000 00000000 00000000 00000000
3f0000c0 00000000
0003: 00000000 00000000 00000000 00000000 00000000 00000200
00000001 00000000
0020: 77180000 06010047 00000010 00000000 00000000 00001000
00000000 00000000
0021: 00000000 00000004 00000000 00000000 00000000 00000000
00000000 00000000
0022: 44068044 00000800 00000100 00000031 00000000 00000000
00000000 00000000
0025: 00000000 00000000 00000000 00000000 00000000 00000000
00000400 00000000
00fb: 00000006 00000000 00000000 00000000 00000000 00000000
00000000 00000000
Any pointers as to how to interpret this would be appreciated.
I've pulled the fontconfig source... but my C is 30 years old and rusty.
>From the docs directory I read in FcCharSetHasChar.3
"FcCharSetHasChar \- Check a charset for a char"
(code
FcBool
FcCharSetHasChar (const FcCharSet *fcs, FcChar32 ucs4))
Is that the functionality I need please?
tia
--
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk
_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig
[Fedora Users]
[Fedora Cloud]
[Kernel]
[Fedora Legacy]
[Fedora Packaging]
[Fedora Desktop]
[PAM]
[Red Hat Development]
[Red Hat 9]
[Gimp]
[Yosemite News]