summaryrefslogtreecommitdiff
path: root/src/fcpat.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@neko.keithp.com>2006-09-01 01:15:14 -0700
committerKeith Packard <keithp@neko.keithp.com>2006-09-01 01:15:14 -0700
commitbc5e487f2a1ad9946aa5c6e19cd75794fc38d530 (patch)
treeaecca6b73781e0dd0476da86f82ffbca5165d364 /src/fcpat.c
parentaec8c90b450c115718fd87bc270e35ee6b605967 (diff)
downloadfontconfig-bc5e487f2a1ad9946aa5c6e19cd75794fc38d530.tar.gz
Pass directory information around in FcCache structure. Freeze charsets.
Instead of passing directory information around in separate variables, collect it all in an FcCache structure. Numerous internal and tool interfaces changed as a result of this. Charsets are now pre-frozen before being serialized. This causes them to share across multiple fonts in the same cache.
Diffstat (limited to 'src/fcpat.c')
-rw-r--r--src/fcpat.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/fcpat.c b/src/fcpat.c
index b40d3c0..9cd01a0 100644
--- a/src/fcpat.c
+++ b/src/fcpat.c
@@ -491,7 +491,15 @@ FcPatternObjectAddWithBinding (FcPattern *p,
* Make sure the stored type is valid for built-in objects
*/
if (!FcObjectValidType (object, value.type))
+ {
+ if (FcDebug() & FC_DBG_OBJTYPES)
+ {
+ printf ("FcPattern object %s does not accept value ",
+ FcObjectName (object));
+ FcValuePrint (value);
+ }
goto bail1;
+ }
new->value = value;
new->binding = binding;