fontilus draw_text bug.
- From: "Young-Ho, Cha" <ganadist mizi com>
- To: james daa com au
- Cc: gnome-i18n gnome org
- Subject: fontilus draw_text bug.
- Date: 13 Jan 2003 13:06:10 +0900
in font-view.c, draw_text function use XftDrawString8. but gnome apps
use utf8 string. so translation of "The quick brown blah blah" is
broken.
Use XftDrawStringUtf8.
here is patch. :)
--- font-view.c.orig 2003-01-13 13:04:58.000000000 +0900
+++ font-view.c 2003-01-13 13:05:23.000000000 +0900
@@ -74,7 +74,7 @@
// g_message("target size=%d, ascent=%d, descent=%d, height=%d",
// pixel_size, font->ascent, font->descent, font->height);
- XftDrawString8(draw, colour, font, 5, *pos_y + font->ascent,
+ XftDrawStringUtf8(draw, colour, font, 5, *pos_y + font->ascent,
(gchar *)text, textlen);
XftFontClose(xdisplay, font);
end:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]