summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cr-fonts.c5
1 files changed, 4 insertions, 1 deletions
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 ;