[gtk/pango-glyph-positions] Tell pango not to round glyph positions
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/pango-glyph-positions] Tell pango not to round glyph positions
- Date: Sun, 7 Jun 2020 01:12:35 +0000 (UTC)
commit 458846ff7fcfc236e3e8f90c5b407347225a3f72
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Jun 6 21:10:43 2020 -0400
Tell pango not to round glyph positions
We want to use subpixel positioning.
gtk/gtkwidget.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 91ad52e502..b99f4f25f2 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -6222,12 +6222,13 @@ update_pango_context (GtkWidget *widget,
font_desc = gtk_css_style_get_pango_font (style);
pango_context_set_font_description (context, font_desc);
-
pango_font_description_free (font_desc);
+ pango_context_set_round_glyph_positions (context, FALSE);
+
pango_context_set_base_dir (context,
- _gtk_widget_get_direction (widget) == GTK_TEXT_DIR_LTR ?
- PANGO_DIRECTION_LTR : PANGO_DIRECTION_RTL);
+ _gtk_widget_get_direction (widget) == GTK_TEXT_DIR_LTR ?
+ PANGO_DIRECTION_LTR : PANGO_DIRECTION_RTL);
pango_cairo_context_set_resolution (context, _gtk_css_number_value_get (style->core->dpi, 100));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]