]> git.sur5r.net Git - glabels/commitdiff
Make sure word wrap is consistent at all zoom levels.
authorJim Evins <evins@snaught.com>
Sun, 22 Jul 2012 21:33:04 +0000 (17:33 -0400)
committerJim Evins <evins@snaught.com>
Sun, 22 Jul 2012 21:34:31 +0000 (17:34 -0400)
src/label-text.c

index 744205e7be874cdbfcbca234e9f2d2e954ee18d6..c595f9ce378dcb25152b79c87f4e433d83650826 100644 (file)
@@ -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);