[gtksourceview] 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] utils: add extra font-variant features from Pango 1.50
- Date: Fri, 12 Nov 2021 18:58:51 +0000 (UTC)
commit c36ec449542f6dbcab2fac2be5c3f1ae182cbff3
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 f79d9d09..e3ee8682 100644
--- a/gtksourceview/gtksourceutils.c
+++ b/gtksourceview/gtksourceutils.c
@@ -391,6 +391,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]