[gtk/css-letter-spacing] textview: Don't forget to collect css letterspacing




commit 93148d302fbf087a7f68be24afb3c2e36ef5dfae
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Aug 26 15:01:23 2021 -0400

    textview: Don't forget to collect css letterspacing
    
    There are more properties missing, this is just
    the start.
    
    Fixes: #4207

 gtk/gtktextview.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index 46944bf82e..9ab2c37a37 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -7670,6 +7670,9 @@ gtk_text_view_set_attributes_from_style (GtkTextView        *text_view,
       if (gtk_css_number_value_get_dimension (style->font->line_height) == GTK_CSS_DIMENSION_LENGTH)
         values->line_height_is_absolute = TRUE;
     }
+
+  values->letter_spacing = _gtk_css_number_value_get (style->font->letter_spacing, 100) * PANGO_SCALE;
+
 }
 
 static void


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