From 14718f10dcda487178690de9a51cc5acdf21e468 Mon Sep 17 00:00:00 2001 From: marha Date: Wed, 25 Sep 2013 09:36:22 +0200 Subject: fontconfig mesa git update 25 Sep 2013 fontconfig commit 102864d0dba46c99b22c912454c1f58731287405 mesa commit 59157d1c96f33ca56d9aba6cff75145d732dbbab --- fontconfig/doc/fccharset.fncs | 36 ++++++++++++++++++++++++++++++------ fontconfig/fc-list/fc-list.sgml | 12 ++++++++++++ fontconfig/src/fclist.c | 2 ++ 3 files changed, 44 insertions(+), 6 deletions(-) (limited to 'fontconfig') diff --git a/fontconfig/doc/fccharset.fncs b/fontconfig/doc/fccharset.fncs index 036870d3b..efcd0ccf1 100644 --- a/fontconfig/doc/fccharset.fncs +++ b/fontconfig/doc/fccharset.fncs @@ -175,9 +175,27 @@ Returns whether a is a subset of b @TYPE3@ FcChar32 * @ARG3@ next @PURPOSE@ Start enumerating charset contents @DESC@ -Builds an array of bits marking the first page of Unicode coverage of -a. Returns the base of the array. next contains the next page in the -font. +Builds an array of bits in map marking the +first page of Unicode coverage of a. +*next is set to contains the base code point +for the next page in a. Returns the base code +point for the page, or FC_CHARSET_DONE if +a contains no pages. As an example, if +FcCharSetFirstPage returns +0x300 and fills map with + +0xffffffff 0xffffffff 0x01000008 0x44300002 0xffffd7f0 0xfffffffb 0xffff7fff 0xffff0003 + +Then the page contains code points 0x300 through +0x33f (the first 64 code points on the page) +because map[0] and +map[1] both have all their bits set. It also +contains code points 0x343 (0x300 + 32*2 ++ (4-1)) and 0x35e (0x300 + +32*2 + (31-1)) because map[2] has +the 4th and 31st bits set. The code points represented by +map[3] and later are left as an excercise for the +reader ;). @@ @RET@ FcChar32 @@ -187,9 +205,15 @@ font. @TYPE3@ FcChar32 * @ARG3@ next @PURPOSE@ Continue enumerating charset contents @DESC@ -Builds an array of bits marking the Unicode coverage of a for page -*next. Returns the base of the array. next contains the next page in -the font. +Builds an array of bits in map marking the +Unicode coverage of a for page containing +*next (see the +FcCharSetFirstPage description for details). +*next is set to contains the base code point +for the next page in a. Returns the base of +code point for the page, or FC_CHARSET_DONE if +a does not contain +*next. @@ @RET@ FcChar32 diff --git a/fontconfig/fc-list/fc-list.sgml b/fontconfig/fc-list/fc-list.sgml index c4a82cd6f..0eb704de4 100644 --- a/fontconfig/fc-list/fc-list.sgml +++ b/fontconfig/fc-list/fc-list.sgml @@ -69,6 +69,10 @@ manpage.1: manpage.sgml + + + + @@ -113,6 +117,14 @@ manpage.1: manpage.sgml format. + + + + + + Suppress all normal output. returns 1 as the error code if no fonts matched. + + diff --git a/fontconfig/src/fclist.c b/fontconfig/src/fclist.c index c56e24c7b..a365098a4 100644 --- a/fontconfig/src/fclist.c +++ b/fontconfig/src/fclist.c @@ -212,6 +212,8 @@ FcListPatternMatchAny (const FcPattern *p, { int i; + if (!p) + return FcFalse; for (i = 0; i < p->num; i++) { FcPatternElt *pe = &FcPatternElts(p)[i]; -- cgit v1.2.3