diff options
author | Owen Taylor <otaylor@redhat.com> | 2004-07-15 14:50:57 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2004-07-15 14:50:57 +0000 |
commit | 6b78072f12a63f2a48a81a08baae812b539df8ee (patch) | |
tree | 684972f6c68ef3c97375f62875c2162db3d15b81 /pango | |
parent | e8451d0463303bbaa3ba3d840d7985f9120ba58a (diff) | |
download | pango-6b78072f12a63f2a48a81a08baae812b539df8ee.tar.gz |
Replace non-breaking-space with a normal space before looking it up.
Thu Jul 15 10:48:01 2004 Owen Taylor <otaylor@redhat.com>
* pango/pangofc-font.c (pango_fc_font_get_glyph): Replace
non-breaking-space with a normal space before looking it up.
(Inspired by http://bugzilla.ximian.com/show_bug.cgi?id=60549)
Diffstat (limited to 'pango')
-rw-r--r-- | pango/pangofc-font.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pango/pangofc-font.c b/pango/pangofc-font.c index 20772d8c..7c373c2d 100644 --- a/pango/pangofc-font.c +++ b/pango/pangofc-font.c @@ -545,6 +545,12 @@ pango_fc_font_get_glyph (PangoFcFont *font, g_return_val_if_fail (PANGO_IS_FC_FONT (font), 0); + /* Replace NBSP with a normal space; it should be invariant that + * they shape the same other than breaking properties. + */ + if (wc == 0xA0) + wc = 0x20; + if (priv->decoder) return pango_fc_decoder_get_glyph (priv->decoder, font, wc); |