[gtk/fix-fractional-letterspacing] css: Allow fractional letterspacing
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/fix-fractional-letterspacing] css: Allow fractional letterspacing
- Date: Sun, 10 Jul 2022 19:24:06 +0000 (UTC)
commit 726c9e83d27a575c7b25ebd81f737dd149dce7be
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Jul 10 15:22:18 2022 -0400
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]