diff options
author | Bruno Haible <bruno@clisp.org> | 2007-01-10 18:14:16 +0000 |
---|---|---|
committer | Dom Lachowicz <doml@src.gnome.org> | 2007-01-10 18:14:16 +0000 |
commit | ef258807ec53ed9639dd68e897de98dbe81f408c (patch) | |
tree | 303f65e1bab636a99b1d466d65ce0b311c01b5bb | |
parent | c86451222851de8afe54f2d894a11d1deca5ea3d (diff) | |
download | libcroco-ef258807ec53ed9639dd68e897de98dbe81f408c.tar.gz |
Handle FONT_WEIGHT_INHERIT.
2007-01-10 Bruno Haible <bruno@clisp.org>
* cr-fonts.c (cr_font_weight_get_bolder): Handle FONT_WEIGHT_INHERIT.
svn path=/trunk/; revision=311
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | src/cr-fonts.c | 5 |
2 files changed, 5 insertions, 1 deletions
@@ -2,6 +2,7 @@ * cr-style.h (enum CRPositionType): Remove trailing comma. Needed for compilation on AIX with xlc. + * cr-fonts.c (cr_font_weight_get_bolder): Handle FONT_WEIGHT_INHERIT. 2007-01-09 Benjamin Dauvergne <feanor@tol-eressea.org> diff --git a/src/cr-fonts.c b/src/cr-fonts.c index 35c57ad..94c4f2c 100644 --- a/src/cr-fonts.c +++ b/src/cr-fonts.c @@ -766,7 +766,10 @@ cr_font_variant_to_string (enum CRFontVariant a_code) enum CRFontWeight cr_font_weight_get_bolder (enum CRFontWeight a_weight) { - if (a_weight >= FONT_WEIGHT_900) { + if (a_weight == FONT_WEIGHT_INHERIT) { + cr_utils_trace_info ("can't return a bolder weight for FONT_WEIGHT_INHERIT") ; + return a_weight; + } else if (a_weight >= FONT_WEIGHT_900) { return FONT_WEIGHT_900 ; } else if (a_weight < FONT_WEIGHT_NORMAL) { return FONT_WEIGHT_NORMAL ; |