diff options
author | Behdad Esfahbod <pango@behdad.org> | 2005-07-23 19:24:48 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2005-07-23 19:24:48 +0000 |
commit | d5142f02455703ea61bd11f308ef844e9b20ebbd (patch) | |
tree | eee87660e4825754892fd64e65499bfc138aa78b /modules/hangul | |
parent | 1470d761b0faf8de46ff38163272a9a6af6c5e64 (diff) | |
download | pango-d5142f02455703ea61bd11f308ef844e9b20ebbd.tar.gz |
New function added.
2005-07-23 Behdad Esfahbod <pango@behdad.org>
* pango/pango-utils.c, pango/pango-utils.h (pango_is_zerowidth): New
function added.
* modules/basic/basic-common.h, modules/basic/basic-fc.c,
modules/basic/basic-win32.c, modules/basic/basic-x.c,
modules/hangul/hangul-fc.c, modules/arabic/arabic-fc.c,
modules/indic/indic-fc.c, modules/indic/indic-ot.h,
modules/syriac/syriac-fc.c: Use the new pango_is_zerowidth function.
(#306639, Behnam Esfahbod)
Diffstat (limited to 'modules/hangul')
-rw-r--r-- | modules/hangul/hangul-fc.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/modules/hangul/hangul-fc.c b/modules/hangul/hangul-fc.c index 75dfa7c9..ad7a239a 100644 --- a/modules/hangul/hangul-fc.c +++ b/modules/hangul/hangul-fc.c @@ -275,10 +275,6 @@ render_syllable (PangoFont *font, gunichar *text, int length, render_tone(font, tone, glyphs, n_glyphs, cluster_offset); } -/* stolen from basic module */ -#define ZERO_WIDTH_CHAR(wc)\ -(((wc) >= 0x200B && (wc) <= 0x200F) || ((wc) >= 0x202A && (wc) <= 0x202E) || ((wc) == 0xFEFF)) - static void render_basic (PangoFont *font, gunichar wc, PangoGlyphString *glyphs, int *n_glyphs, int cluster_offset) @@ -294,7 +290,7 @@ render_basic (PangoFont *font, gunichar wc, set_glyph (font, glyphs, *n_glyphs, cluster_offset, index); else { - if (ZERO_WIDTH_CHAR (wc)) + if (pango_is_zero_width (wc)) set_glyph (font, glyphs, *n_glyphs, cluster_offset, 0); else set_glyph (font, glyphs, *n_glyphs, cluster_offset, |