const PangoFontDescription *pfd;
cairo_t *cr = im->cr;
- static double last_tabwidth = -1;
-
/* for performance reasons we might
gchar *utf8_text;
- if (last_tabwidth < 0 || last_tabwidth != tabwidth){
+ if (im->last_tabwidth < 0 || im->last_tabwidth != tabwidth){
PangoTabArray *tab_array;
// fprintf(stderr,"t");
- last_tabwidth = tabwidth;
+ im->last_tabwidth = tabwidth;
tab_array = pango_tab_array_new(tab_count, (gboolean) (1));
for (i = 1; i <= tab_count; i++) {
pango_tab_array_set_tab(tab_array,
im->ysize = 100;
im->zoom = 1;
im->init_mode = init_mode;
+ im->last_tabwidth = -1;
if (init_mode == IMAGE_INIT_CAIRO) {
im->font_options = cairo_font_options_create();
enum image_init_en init_mode; /* do we need Cairo/Pango? */
double x_pixie; /* scale for X (see xtr() for reference) */
double y_pixie; /* scale for Y (see ytr() for reference) */
+ double last_tabwidth; /* (see gfx_prep_text() for reference) */
} image_desc_t;
/* Prototypes */