rrdtool/rrdtool-1.3-beta3-text-align.patch

34 lines
1.4 KiB
Diff
Raw Normal View History

Index: rrdtool/src/rrd_gfx.c
===================================================================
--- rrdtool/src/rrd_gfx.c (revision 1183)
+++ rrdtool/src/rrd_gfx.c (revision 1264)
@@ -147,5 +147,7 @@
pango_context = pango_layout_get_context(layout);
pango_cairo_context_set_font_options(pango_context, im->font_options);
- pango_cairo_update_context(cr, pango_context);
+ pango_cairo_context_set_resolution(pango_context,100);
+
+/* pango_cairo_update_context(cr, pango_context); */
pango_layout_set_tabs(layout, tab_array);
Index: rrdtool/src/rrd_graph.c
===================================================================
--- rrdtool/src/rrd_graph.c (revision 1262)
+++ rrdtool/src/rrd_graph.c (revision 1264)
@@ -341,5 +341,5 @@
cairo_surface_destroy(im->surface);
if (status)
- fprintf(stderr, "OOPS: Cairo has issuesm it can't even die: %s\n",
+ fprintf(stderr, "OOPS: Cairo has issues it can't even die: %s\n",
cairo_status_to_string(status));
@@ -3032,7 +3032,7 @@
};
im->cr = cairo_create(im->surface);
- pango_cairo_font_map_set_resolution(PANGO_CAIRO_FONT_MAP(font_map), 100);
cairo_set_antialias(im->cr, im->graph_antialias);
cairo_scale(im->cr, im->zoom, im->zoom);
+ pango_cairo_font_map_set_resolution(PANGO_CAIRO_FONT_MAP(font_map), 100);
gfx_new_area(im,