summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-12-10 19:15:38 -0500
committerMatthias Clasen <mclasen@redhat.com>2021-12-10 19:16:34 -0500
commite77952e0700b1975e87beed1e010402abcbc0594 (patch)
treec698d808372d5ceedba7769309ba2b905ddf671a
parent6f8548518b39e8818beb0a021d615be27be05253 (diff)
downloadpango-e77952e0700b1975e87beed1e010402abcbc0594.tar.gz
Document new variant values
-rw-r--r--docs/pango_markup.md4
-rw-r--r--pango/fonts.c3
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.