From: Jim Evins Date: Thu, 31 Jan 2008 03:29:16 +0000 (+0000) Subject: 2008-01-30 Jim Evins X-Git-Tag: glabels-2_2_5~42 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4908a24dc1a5d597a853a4806e791f78b522fafd;p=glabels 2008-01-30 Jim Evins * 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/branches/glabels-2_2@737 f5e0f49d-192f-0410-a22d-a8d8700d0965 --- diff --git a/glabels2/ChangeLog b/glabels2/ChangeLog index d713fa19..2cee6c88 100644 --- a/glabels2/ChangeLog +++ b/glabels2/ChangeLog @@ -1,3 +1,9 @@ +2008-01-30 Jim Evins + + * 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 * src/print-op.c: (gl_print_op_construct), diff --git a/glabels2/src/label-text.c b/glabels2/src/label-text.c index b9b0da26..6139d5e7 100644 --- a/glabels2/src/label-text.c +++ b/glabels2/src/label-text.c @@ -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);