[pango/misc-doc-fixups: 2/7] Document new variant values




commit e77952e0700b1975e87beed1e010402abcbc0594
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Dec 10 19:15:38 2021 -0500

    Document new variant values

 docs/pango_markup.md | 4 +++-
 pango/fonts.c        | 3 ++-
 2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/docs/pango_markup.md b/docs/pango_markup.md
index dcabad93..6a6cc3c2 100644
--- a/docs/pango_markup.md
+++ b/docs/pango_markup.md
@@ -98,7 +98,9 @@ weight
 
 font_variant
 variant
-: One of 'normal' or 'smallcaps'.
+: One of 'normal', 'small-caps', 'all-small-caps', 'petite-caps', 'all-petite-caps',
+  'unicase', 'title-caps'. Values other than 'normal' and 'small-caps' are available
+  since 1.50.
 
 font_stretch
 stretch
diff --git a/pango/fonts.c b/pango/fonts.c
index 129e84d3..fd283264 100644
--- a/pango/fonts.c
+++ b/pango/fonts.c
@@ -1627,7 +1627,8 @@ pango_parse_style (const char *str,
  *
  * Parses a font variant.
  *
- * The allowed values are "normal" and "smallcaps" or "small_caps",
+ * The allowed values are "normal", "small-caps", "all-small-caps",
+ * "petite-caps", "all-petite-caps", "unicase" and "title-caps",
  * case variations being ignored.
  *
  * Return value: %TRUE if @str was successfully parsed.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]