--- deliantra/Deliantra-Client/Client.xs 2006/04/10 22:16:33 1.12 +++ deliantra/Deliantra-Client/Client.xs 2006/04/11 12:27:51 1.13 @@ -49,17 +49,23 @@ RETVAL void +add_font (char *file) + CODE: + FcConfigAppFontAddFile (0, (const FcChar8 *)file); /* no idea wether this is required */ + +void set_font (char *file) CODE: { int count; FcPattern *pattern = FcFreeTypeQuery ((const FcChar8 *)file, 0, 0, &count); - FcConfigAppFontAddFile (0, (const FcChar8 *)file); /* no idea wether this is required */ PangoFontDescription *font = pango_fc_font_description_from_pattern (pattern, 0); FcPatternDestroy (pattern); pango_context_set_font_description (context, font); } +MODULE = Crossfire::Client PACKAGE = Crossfire::Client + void font_render (SV *text_, int height = 10) PPCODE: