From e13df7cec358b97c3a7c4beeadfa21986f61a908 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 8 Jun 2003 04:48:32 +0000 Subject: [PATCH] register my glft extensions to the fontpattern --- glft/init.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/glft/init.c b/glft/init.c index 2c4410ef..d0b725c1 100644 --- a/glft/init.c +++ b/glft/init.c @@ -8,7 +8,17 @@ FcBool init_done = 0; FT_Library ft_lib; +FcObjectType objs[] = { + { GLFT_SHADOW, FcTypeBool }, + { GLFT_SHADOW_OFFSET, FcTypeInteger }, + { GLFT_SHADOW_ALPHA, FcTypeDouble } +}; + +#define NUM_OBJS (sizeof(objs) / sizeof(objs[0])) + FcBool GlftInit() { - return init_done = (FcInit() && !FT_Init_FreeType(&ft_lib)); + if ((init_done = (FcInit() && !FT_Init_FreeType(&ft_lib)))) + FcNameRegisterObjectTypes(objs, NUM_OBJS); + return init_done; } -- 2.34.1