summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Evins <evins@snaught.com>2012-07-22 17:33:04 -0400
committerJim Evins <evins@snaught.com>2012-07-22 17:33:04 -0400
commit0a48ec82bbe12a289c7e467af122dbe39d54e9e0 (patch)
tree77ad67a5d24e32aa6d29c274ec66e0ad3b98ca99
parent83977eda4a92c19f4f8ae44879d5041231b84f80 (diff)
Make sure word wrap is consistent at all zoom levels.
-rw-r--r--src/label-text.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/label-text.c b/src/label-text.c
index 06f520d..d51e300 100644
--- a/src/label-text.c
+++ b/src/label-text.c
@@ -534,6 +534,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);
@@ -1150,6 +1151,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);