diff options
author | Owen Taylor <otaylor@redhat.com> | 2004-12-17 19:45:07 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2004-12-17 19:45:07 +0000 |
commit | d316bbe9a7261a293b15c94e53f2e6654a12488f (patch) | |
tree | 130b0e36fc11b1c34c61e215bf317e7e75761c39 /pango | |
parent | 8059596d55acfea1b242053dbf77d64cae6a2b03 (diff) | |
download | pango-d316bbe9a7261a293b15c94e53f2e6654a12488f.tar.gz |
Use FC_WEIGHT_MEDIUM, not FC_WEIGHT_NORMAL in old-fontconfig case.
Fri Dec 17 14:37:49 2004 Owen Taylor <otaylor@redhat.com>
* pango/pangofc-fontmap.c (pango_fc_convert_weight_to_fc): Use
FC_WEIGHT_MEDIUM, not FC_WEIGHT_NORMAL in old-fontconfig
case. (#161568, Vincent Noel)
Diffstat (limited to 'pango')
-rw-r--r-- | pango/pangofc-fontmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pangofc-fontmap.c b/pango/pangofc-fontmap.c index 6f50e0f4..8e17d76d 100644 --- a/pango/pangofc-fontmap.c +++ b/pango/pangofc-fontmap.c @@ -581,7 +581,7 @@ pango_fc_convert_weight_to_fc (PangoWeight pango_weight) if (pango_weight < (PANGO_WEIGHT_LIGHT + PANGO_WEIGHT_NORMAL) / 2) return FC_WEIGHT_LIGHT; else if (pango_weight < (500 /* PANGO_WEIGHT_MEDIUM */ + PANGO_WEIGHT_SEMIBOLD) / 2) - return FC_WEIGHT_NORMAL; + return FC_WEIGHT_MEDIUM; else if (pango_weight < (PANGO_WEIGHT_SEMIBOLD + PANGO_WEIGHT_BOLD) / 2) return FC_WEIGHT_DEMIBOLD; else if (pango_weight < (PANGO_WEIGHT_BOLD + PANGO_WEIGHT_ULTRABOLD) / 2) |