/* fontsize at which text is rendered by a simple line */
#define FONTSIZE_TOO_SMALL 1.5
-void textlayout(textpara_t * para, char **fontpath)
+static void gd_textlayout(textpara_t * para, char **fontpath)
{
static char *fntpath;
char *err;
}
}
-static gvtextlayout_engine_t textlayout_engine = {
- textlayout,
+static gvtextlayout_engine_t gd_textlayout_engine = {
+ gd_textlayout,
};
#endif
#endif
gvplugin_installed_t gvtextlayout_gd_types[] = {
#if defined(HAVE_LIBGD) && defined(HAVE_LIBFREETYPE) && defined(HAVE_GD_FREETYPE) && defined(HAVE_LIBFONTCONFIG) && defined(HAVE_GD_FONTCONFIG)
- {0, "textlayout", 2, &textlayout_engine, NULL},
+ {0, "textlayout", 2, &gd_textlayout_engine, NULL},
#endif
{0, NULL, 0, NULL, NULL}
};
#include "gvplugin.h"
-extern gvplugin_installed_t gvrender_pangogen_types;
-extern gvplugin_installed_t gvtextlayout_pangogen_types;
+extern gvplugin_installed_t gvrender_pango_types;
+extern gvplugin_installed_t gvtextlayout_pango_types;
static gvplugin_api_t apis[] = {
- {API_render, &gvrender_pangogen_types},
- {API_textlayout, &gvtextlayout_pangogen_types},
+ {API_render, &gvrender_pango_types},
+ {API_textlayout, &gvtextlayout_pango_types},
{(api_t)0, NULL},
};
#endif
#endif
-gvplugin_installed_t gvrender_pangogen_types[] = {
+gvplugin_installed_t gvrender_pango_types[] = {
#ifdef HAVE_PANGOCAIRO
#ifdef CAIRO_HAS_PNG_FUNCTIONS
{FORMAT_PNG, "png", 10, &cairogen_engine, &cairogen_features},
#ifdef HAVE_PANGOCAIRO
#include <pango/pangocairo.h>
-static void pangocairo_free_layout (void *layout)
+static void pango_free_layout (void *layout)
{
g_object_unref((PangoLayout*)layout);
}
-static void pangocairo_textlayout(textpara_t * para, char **fontpath)
+static void pango_textlayout(textpara_t * para, char **fontpath)
{
static PangoFontMap *fontmap;
static PangoContext *context;
layout = pango_layout_new (context);
para->layout = (void *)layout; /* layout free with textpara - see labels.c */
- para->free_layout = pangocairo_free_layout; /* function for freeing pango layout */
+ para->free_layout = pango_free_layout; /* function for freeing pango layout */
pango_layout_set_text (layout, text, -1);
pango_layout_set_font_description (layout, desc);
*fontpath = "[pango]";
}
-static gvtextlayout_engine_t pangocairo_textlayout_engine = {
- pangocairo_textlayout,
+static gvtextlayout_engine_t pango_textlayout_engine = {
+ pango_textlayout,
};
#endif
-gvplugin_installed_t gvtextlayout_pangocairogen_types[] = {
+gvplugin_installed_t gvtextlayout_pango_types[] = {
#ifdef HAVE_PANGOCAIRO
- {0, "textlayout", 10, &pangocairo_textlayout_engine, NULL},
+ {0, "textlayout", 10, &pango_textlayout_engine, NULL},
#endif
{0, NULL, 0, NULL, NULL}
};