[gtk/backports-for-4-4: 2/19] textview: Don't forget to collect css letterspacing
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/backports-for-4-4: 2/19] textview: Don't forget to collect css letterspacing
- Date: Thu, 2 Sep 2021 23:11:42 +0000 (UTC)
commit 3799c9d51e949ae70b005e80bc0c5e1df994479f
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 | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index 3f603f1bdc..89ad146fbb 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -7657,6 +7657,8 @@ gtk_text_view_set_attributes_from_style (GtkTextView *text_view,
pango_font_description_free (values->font);
values->font = gtk_css_style_get_pango_font (style);
+
+ 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]