From: Dana Jansens Date: Sun, 8 Jun 2003 04:48:32 +0000 (+0000) Subject: register my glft extensions to the fontpattern X-Git-Tag: gl-oldtheme~34 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=e13df7cec358b97c3a7c4beeadfa21986f61a908;p=dana%2Fopenbox.git register my glft extensions to the fontpattern --- 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; }