]> git.sur5r.net Git - glabels/commitdiff
2008-01-30 Jim Evins <evins@snaught.com>
authorJim Evins <evins@snaught.com>
Thu, 31 Jan 2008 03:26:22 +0000 (03:26 +0000)
committerJim Evins <evins@snaught.com>
Thu, 31 Jan 2008 03:26:22 +0000 (03:26 +0000)
* src/label-text.c: (get_size), (draw_object), (draw_shadow):
Don't turn off cairo_hint_metrics.  This causes serious issues with
bitmap fonts.

git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@736 f5e0f49d-192f-0410-a22d-a8d8700d0965

glabels2/ChangeLog
glabels2/src/label-text.c

index effd47fb1ae4e0f92e9bb554d4c45882b2cc73cf..bd3d5d2d991def52da39b7dc6b3d41e5f7589c23 100644 (file)
@@ -1,3 +1,9 @@
+2008-01-30  Jim Evins  <evins@snaught.com>
+
+       * src/label-text.c: (get_size), (draw_object), (draw_shadow):
+               Don't turn off cairo_hint_metrics.  This causes serious issues with
+               bitmap fonts.
+
 2008-01-29  Jim Evins  <evins@snaught.com>
 
        * src/print-op.c: (gl_print_op_construct),
index b9b0da26fa714cbe41382b297c23885c4491eca6..6139d5e79f2d3879a188fc0976a56e5a5e453e0f 100644 (file)
@@ -393,7 +393,6 @@ get_size (glLabelObject *object,
        fontmap = pango_cairo_font_map_new ();
        context = pango_cairo_font_map_create_context (PANGO_CAIRO_FONT_MAP (fontmap));
        options = cairo_font_options_create ();
-       cairo_font_options_set_hint_metrics (options, CAIRO_HINT_METRICS_OFF);
         cairo_font_options_set_hint_style (options, CAIRO_HINT_STYLE_NONE);
        pango_cairo_context_set_font_options (context, options);
        cairo_font_options_destroy (options);
@@ -853,7 +852,6 @@ draw_object (glLabelObject *object,
         layout = pango_cairo_create_layout (cr);
 
         font_options = cairo_font_options_create ();
-        cairo_font_options_set_hint_metrics (font_options, CAIRO_HINT_METRICS_OFF);
         cairo_font_options_set_hint_style (font_options, CAIRO_HINT_STYLE_NONE);
         context = pango_layout_get_context (layout);
         pango_cairo_context_set_font_options (context, font_options);
@@ -994,7 +992,6 @@ draw_shadow (glLabelObject *object,
         layout = pango_cairo_create_layout (cr);
 
         font_options = cairo_font_options_create ();
-        cairo_font_options_set_hint_metrics (font_options, CAIRO_HINT_METRICS_OFF);
         cairo_font_options_set_hint_style (font_options, CAIRO_HINT_STYLE_NONE);
         context = pango_layout_get_context (layout);
         pango_cairo_context_set_font_options (context, font_options);