summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b3d9df3)
raw | patch | inline | side by side (parent: b3d9df3)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Fri, 4 Jan 2008 22:53:46 +0000 (22:53 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Fri, 4 Jan 2008 22:53:46 +0000 (22:53 +0000) |
program/src/rrd_gfx.c | patch | blob | history | |
program/src/rrd_graph.c | patch | blob | history |
diff --git a/program/src/rrd_gfx.c b/program/src/rrd_gfx.c
index f91240cf5af54733f8485114595af64ac7bc0c53..fc8b0bd4ea956e2152863c00892a0cf3c8ace2e3 100644 (file)
--- a/program/src/rrd_gfx.c
+++ b/program/src/rrd_gfx.c
layout = pango_cairo_create_layout(cr);
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);
font_desc = pango_font_description_from_string(font);
index ac0f3ea6446ca57155bb76535f0fc7ca72984962..795a6accf50035f6b9fe567485707beb1bec1ee3 100644 (file)
--- a/program/src/rrd_graph.c
+++ b/program/src/rrd_graph.c
if (im->surface)
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));
return 0;
break;
};
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,
0, 0,