[gnome-text-editor] utils: track Pango 1.50 changes
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-text-editor] utils: track Pango 1.50 changes
- Date: Fri, 12 Nov 2021 22:28:47 +0000 (UTC)
commit 6fbcb563b7c3286f60cbb411d017293cd8411446
Author: Christian Hergert <chergert redhat com>
Date: Fri Nov 12 14:28:43 2021 -0800
utils: track Pango 1.50 changes
src/editor-utils.c | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
---
diff --git a/src/editor-utils.c b/src/editor-utils.c
index cc9e96c..fa2c9a9 100644
--- a/src/editor-utils.c
+++ b/src/editor-utils.c
@@ -76,6 +76,28 @@ _editor_font_description_to_css (const PangoFontDescription *font_desc)
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]