diff options
author | Lauris Kaplinski <lauris@src.gnome.org> | 2000-08-22 10:53:04 +0800 |
---|---|---|
committer | Lauris Kaplinski <lauris@src.gnome.org> | 2000-08-22 10:53:04 +0800 |
commit | a0e3d19542a1ebd025c6e047c17ea813c7afb661 (patch) | |
tree | cb2980ba337d19eedeb15d296143681d2fe8264e /e-util/e-font.h | |
parent | 95ba651873ef5e263139a46ec76cb26b6cc79647 (diff) | |
download | gsoc2013-evolution-a0e3d19542a1ebd025c6e047c17ea813c7afb661.tar gsoc2013-evolution-a0e3d19542a1ebd025c6e047c17ea813c7afb661.tar.gz gsoc2013-evolution-a0e3d19542a1ebd025c6e047c17ea813c7afb661.tar.bz2 gsoc2013-evolution-a0e3d19542a1ebd025c6e047c17ea813c7afb661.tar.lz gsoc2013-evolution-a0e3d19542a1ebd025c6e047c17ea813c7afb661.tar.xz gsoc2013-evolution-a0e3d19542a1ebd025c6e047c17ea813c7afb661.tar.zst gsoc2013-evolution-a0e3d19542a1ebd025c6e047c17ea813c7afb661.zip |
Changed UTF-8 handling syntax from char based to byte based
svn path=/trunk/; revision=4913
Diffstat (limited to 'e-util/e-font.h')
-rw-r--r-- | e-util/e-font.h | 37 |
1 files changed, 13 insertions, 24 deletions
diff --git a/e-util/e-font.h b/e-util/e-font.h index 74ebea2592..9616e9ef4b 100644 --- a/e-util/e-font.h +++ b/e-util/e-font.h @@ -45,30 +45,19 @@ gint e_font_descent (EFont * font); * NB! UTF-8 text widths are given in chars, not bytes */ -void e_font_draw_utf8_text (GdkDrawable *drawable, EFont *font, EFontStyle style, GdkGC *gc, gint x, gint y, gchar *text, gint numchars); -int e_font_utf8_text_width (EFont *font, EFontStyle style, char *text, int numchars); - -#if 0 -void e_font_draw_ucs2_text (GdkDrawable *drawable, EFont *font, GdkGC *gc, gint x, gint y, short *text, gint length); - -gboolean e_ucs2_isspace (short ch); - -unsigned short *e_ucs2_from_utf8 (const gchar *text); -unsigned short *e_ucs2_from_utf8_sized (const gchar *text, gint length); - -unsigned char *e_utf8_from_ucs2_sized (const short *text, int length); - -int e_font_ucs2_text_width (EFont *font, short *text, int length); - -int e_ucs2_strlen (const short *text); - -short * e_ucs2_strncpy (short *dst, short *src, int length); -short * e_ucs2_strcpy (short *dst, short *src); - -short * e_ucs2_strdup (const short *string); - -gint e_ucs2_strcmp (const short *a, const short *b); -#endif +void e_font_draw_utf8_text (GdkDrawable *drawable, + EFont *font, EFontStyle style, + GdkGC *gc, + gint x, gint y, + gchar *text, + gint numbytes); + +int e_font_utf8_text_width (EFont *font, EFontStyle style, + char *text, + int numbytes); + +int e_font_utf8_char_width (EFont *font, EFontStyle style, + char *text); END_GNOME_DECLS |