From 726c9e83d27a575c7b25ebd81f737dd149dce7be Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 10 Jul 2022 15:22:18 -0400 Subject: [PATCH] css: Allow fractional letterspacing Something like letter-spacing: -0.5px make a lot of sense. But we were handling the number as integer somewhere, loosing the fractional part. Fixes: #5034 --- gtk/gtkcssstyle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkcssstyle.c b/gtk/gtkcssstyle.c index f03d9b4f1a..0822e80a46 100644 --- a/gtk/gtkcssstyle.c +++ b/gtk/gtkcssstyle.c @@ -596,7 +596,7 @@ gtk_css_style_get_pango_attributes (GtkCssStyle *style) GtkTextDecorationStyle decoration_style; const GdkRGBA *color; const GdkRGBA *decoration_color; - int letter_spacing; + double letter_spacing; /* text-decoration */ decoration_line = _gtk_css_text_decoration_line_value_get (style->font_variant->text_decoration_line);