[gtksourceview/gtksourceview-4-8] utils: add extra font-variant features from Pango 1.50
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/gtksourceview-4-8] utils: add extra font-variant features from Pango 1.50
- Date: Fri, 12 Nov 2021 19:01:09 +0000 (UTC)
commit 009844bd726f84f0be66c1d99526a9c9ce26f0dd
Author: Christian Hergert <chergert redhat com>
Date: Fri Nov 12 10:58:46 2021 -0800
utils: add extra font-variant features from Pango 1.50
gtksourceview/gtksourceutils.c | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
---
diff --git a/gtksourceview/gtksourceutils.c b/gtksourceview/gtksourceutils.c
index fa399eaf..1230b4b3 100644
--- a/gtksourceview/gtksourceutils.c
+++ b/gtksourceview/gtksourceutils.c
@@ -394,6 +394,28 @@ _gtk_source_utils_pango_font_description_to_css (const PangoFontDescription *fon
ADD_KEYVAL (FONT_VARIANT, "small-caps");
break;
+#if PANGO_VERSION_CHECK(1, 49, 3)
+ case PANGO_VARIANT_ALL_SMALL_CAPS:
+ ADD_KEYVAL (FONT_VARIANT, "all-small-caps");
+ break;
+
+ case PANGO_VARIANT_PETITE_CAPS:
+ ADD_KEYVAL (FONT_VARIANT, "petite-caps");
+ break;
+
+ case PANGO_VARIANT_ALL_PETITE_CAPS:
+ ADD_KEYVAL (FONT_VARIANT, "all-petite-caps");
+ break;
+
+ case PANGO_VARIANT_UNICASE:
+ ADD_KEYVAL (FONT_VARIANT, "unicase");
+ break;
+
+ case PANGO_VARIANT_TITLE_CAPS:
+ ADD_KEYVAL (FONT_VARIANT, "titling-caps");
+ break;
+#endif
+
default:
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]