[gtksourceview] pango: fix typo in PangoFontDescription to CSS conversion
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] pango: fix typo in PangoFontDescription to CSS conversion
- Date: Thu, 28 Apr 2016 23:58:25 +0000 (UTC)
commit 9fe53986c303e1fb40fc88b460340af9db0630ce
Author: Christian Hergert <christian hergert me>
Date: Thu Apr 28 16:57:58 2016 -0700
pango: fix typo in PangoFontDescription to CSS conversion
We were mistakenly using pixels instead of points for this. This was not
visible in 3.20, but is now in 3.21.
gtksourceview/gtksourceview-utils.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtksourceview/gtksourceview-utils.c b/gtksourceview/gtksourceview-utils.c
index f662329..8b9a5f1 100644
--- a/gtksourceview/gtksourceview-utils.c
+++ b/gtksourceview/gtksourceview-utils.c
@@ -299,7 +299,7 @@ _gtk_source_pango_font_description_to_css (const PangoFontDescription *font_desc
gint font_size;
font_size = pango_font_description_get_size (font_desc) / PANGO_SCALE;
- ADD_KEYVAL_PRINTF ("font-size", "%dpx", font_size);
+ ADD_KEYVAL_PRINTF ("font-size", "%dpt", font_size);
}
return g_string_free (str, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]