summaryrefslogtreecommitdiff
path: root/pango/fonts.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2009-01-06 11:07:02 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2009-01-06 11:07:02 +0000
commitb072c3353cc2d10d6b26fb86cb13694a967a59cd (patch)
tree2844ce99d8207140eb53a69f24395ffaa0925d89 /pango/fonts.c
parent24fb6a2be0c492b023b32ab98556961a8317e13e (diff)
downloadpango-b072c3353cc2d10d6b26fb86cb13694a967a59cd.tar.gz
Bug 166709 – Handle font variants more consistently
2009-01-06 Behdad Esfahbod <behdad@gnome.org> Bug 166709 – Handle font variants more consistently * pango/pango-font.h: Add enum values PANGO_WEIGHT_BOOK and PANGO_WEIGHT_ULTRAHEAVY. * pango/fonts.c: * docs/tmpl/fonts.sgml: Add new weights with their aliases, as well as aliasing "Roman" to the normal weight. svn path=/trunk/; revision=2787
Diffstat (limited to 'pango/fonts.c')
-rw-r--r--pango/fonts.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/pango/fonts.c b/pango/fonts.c
index 5e145aec..1faedff5 100644
--- a/pango/fonts.c
+++ b/pango/fonts.c
@@ -862,8 +862,10 @@ static const FieldMap weight_map[] = {
{ PANGO_WEIGHT_ULTRALIGHT, "Ultra-Light" },
{ PANGO_WEIGHT_ULTRALIGHT, "Extra-Light" },
{ PANGO_WEIGHT_LIGHT, "Light" },
+ { PANGO_WEIGHT_BOOK, "Book" },
{ PANGO_WEIGHT_NORMAL, "" },
{ PANGO_WEIGHT_NORMAL, "Regular" },
+ { PANGO_WEIGHT_NORMAL, "Roman" },
{ PANGO_WEIGHT_MEDIUM, "Medium" },
{ PANGO_WEIGHT_SEMIBOLD, "Semi-Bold" },
{ PANGO_WEIGHT_SEMIBOLD, "Demi-Bold" },
@@ -871,7 +873,11 @@ static const FieldMap weight_map[] = {
{ PANGO_WEIGHT_ULTRABOLD, "Ultra-Bold" },
{ PANGO_WEIGHT_ULTRABOLD, "Extra-Bold" },
{ PANGO_WEIGHT_HEAVY, "Heavy" },
- { PANGO_WEIGHT_HEAVY, "Black" }
+ { PANGO_WEIGHT_HEAVY, "Black" },
+ { PANGO_WEIGHT_ULTRAHEAVY, "Ultra-Heavy" },
+ { PANGO_WEIGHT_ULTRAHEAVY, "Extra-Heavy" },
+ { PANGO_WEIGHT_ULTRAHEAVY, "Ultra-Black" },
+ { PANGO_WEIGHT_ULTRAHEAVY, "Extra-Black" }
};
static const FieldMap stretch_map[] = {