diff options
author | Owen Taylor <otaylor@redhat.com> | 2004-12-31 15:33:17 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2004-12-31 15:33:17 +0000 |
commit | 8a31da2ec82afd88219ec4221015373ccff390fd (patch) | |
tree | e4602f95f64b8e8930b3a551d44a860645b3abbd /pango | |
parent | 3af3b3e4e1e5de7ad3f49b91295f4d77310caf53 (diff) | |
download | pango-8a31da2ec82afd88219ec4221015373ccff390fd.tar.gz |
Fix problem where MEDIUM was getting grouped with SEMIBOLD rather than
Fri Dec 31 10:20:55 2004 Owen Taylor <otaylor@redhat.com>
* pango/pangofc-fontmap.c (pango_fc_convert_weight_to_pango):
Fix problem where MEDIUM was getting grouped with SEMIBOLD
rather than NORMAL.
(http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=143832)
Wed Dec 22 13:21:01 2004 Owen Taylor <otaylor@redhat.com>
* pango/pango-script.c pango/pango-types.h: Fix a couple
of documentation typos (#161647, Torsten Schoenfeld)
Diffstat (limited to 'pango')
-rw-r--r-- | pango/pango-script.c | 2 | ||||
-rw-r--r-- | pango/pango-types.h | 2 | ||||
-rw-r--r-- | pango/pangofc-fontmap.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/pango/pango-script.c b/pango/pango-script.c index a1be94e0..d57358dc 100644 --- a/pango/pango-script.c +++ b/pango/pango-script.c @@ -172,7 +172,7 @@ pango_script_iter_free (PangoScriptIter *iter) * @script: location to store script for range, or %NULL * * Gets information about the range to which @iter currently points. - * The range is the is the set of locations p where *start <= p < *end. + * The range is the set of locations p where *start <= p < *end. * (That is, it doesn't include the character stored at *end) **/ void diff --git a/pango/pango-types.h b/pango/pango-types.h index 82143508..51eb456a 100644 --- a/pango/pango-types.h +++ b/pango/pango-types.h @@ -155,7 +155,7 @@ void pango_matrix_concat (PangoMatrix *matrix, * Unicode bidirectional algorithm; not every value in this * enumeration makes sense for every usage of #PangoDirection; * for example, the return value of pango_unichar_direction() - * and pango_find_base_direction() cannot be %PANGO_DIRECTION_WEAK_LTR + * and pango_find_base_dir() cannot be %PANGO_DIRECTION_WEAK_LTR * or %PANGO_DIRECTION_WEAK_RTL, since every character is either * neutral or has a strong direction; on the other hand * %PANGO_DIRECTION_NEUTRAL doesn't make sense to pass diff --git a/pango/pangofc-fontmap.c b/pango/pangofc-fontmap.c index 8e17d76d..5ac4f285 100644 --- a/pango/pangofc-fontmap.c +++ b/pango/pangofc-fontmap.c @@ -1288,7 +1288,7 @@ pango_fc_convert_weight_to_pango (int fc_weight) return PANGO_WEIGHT_ULTRALIGHT; else if (fc_weight < (FC_WEIGHT_LIGHT + FC_WEIGHT_REGULAR) / 2) return PANGO_WEIGHT_LIGHT; - else if (fc_weight < (FC_WEIGHT_REGULAR + FC_WEIGHT_MEDIUM) / 2) + else if (fc_weight < (FC_WEIGHT_REGULAR + FC_WEIGHT_DEMIBOLD) / 2) return PANGO_WEIGHT_NORMAL; /* We group the 500/MEDIUM weight with normal to reduce confusion * |