[gtk/style-prop-change: 2/2] css: Kerning affects text size



commit 8727b0708e40e018bd2272d5d600e2b603713630
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Apr 18 18:08:10 2019 +0000

    css: Kerning affects text size
    
    Thats the point. And we were missing the proper
    flags to make GTK do the right thing when
    changing font-kerning in the inspector.

 gtk/gtkcssstylepropertyimpl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkcssstylepropertyimpl.c b/gtk/gtkcssstylepropertyimpl.c
index 251adb4a9a..a1987b751a 100644
--- a/gtk/gtkcssstylepropertyimpl.c
+++ b/gtk/gtkcssstylepropertyimpl.c
@@ -1063,7 +1063,7 @@ _gtk_css_style_property_init_properties (void)
                                           GTK_CSS_PROPERTY_FONT_KERNING,
                                           G_TYPE_NONE,
                                           0,
-                                          GTK_CSS_AFFECTS_TEXT_ATTRS,
+                                          GTK_CSS_AFFECTS_TEXT_ATTRS | GTK_CSS_AFFECTS_TEXT_SIZE,
                                           parse_font_kerning,
                                           NULL,
                                           _gtk_css_font_kerning_value_new (GTK_CSS_FONT_KERNING_AUTO));


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