[glabels/glabels-3_0] Make sure word wrap is consistent at all zoom levels.



commit aebe524714beaafb2d5a5cc9378a9b31c6bd7cac
Author: Jim Evins <evins snaught com>
Date:   Sun Jul 22 17:33:04 2012 -0400

    Make sure word wrap is consistent at all zoom levels.

 src/label-text.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/label-text.c b/src/label-text.c
index 744205e..c595f9c 100644
--- a/src/label-text.c
+++ b/src/label-text.c
@@ -521,6 +521,7 @@ get_size (glLabelObject *object,
 	context = pango_cairo_font_map_create_context (PANGO_CAIRO_FONT_MAP (fontmap));
 	options = cairo_font_options_create ();
         cairo_font_options_set_hint_style (options, CAIRO_HINT_STYLE_NONE);
+        cairo_font_options_set_hint_metrics (options, CAIRO_HINT_METRICS_OFF);
 	pango_cairo_context_set_font_options (context, options);
 	cairo_font_options_destroy (options);
 
@@ -1068,6 +1069,7 @@ set_text_path (glLabelText      *this,
 
         font_options = cairo_font_options_create ();
         cairo_font_options_set_hint_style (font_options, CAIRO_HINT_STYLE_NONE);
+        cairo_font_options_set_hint_metrics (font_options, CAIRO_HINT_METRICS_OFF);
         context = pango_layout_get_context (layout);
         pango_cairo_context_set_font_options (context, font_options);
         cairo_font_options_destroy (font_options);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]