get_text_font in gtkfont.c problem
- From: teppei silk co jp
- To: gtk-i18n-list gnome org
- Subject: get_text_font in gtkfont.c problem
- Date: Mon, 22 May 2000 21:21:45 +0900
Hello,
I think GtkTextFont* get_text_font() causes disorder if I
use i18n fonts.In gtktext.c, lines near 2937 are;
for(i = 0; i < 256; i += 1)
tf->char_widths[i] = gdk_char_width (gfont, (char)i);
Above lines should be like follows;
if (gfont->type == GDK_FONT_FONT) {
for(i = 0; i < 256; i += 1)
tf->char_widths[i] = gdk_char_width (gfont, (char)i);
} else {
for(i = 0; i < 256; i += 1)
tf->char_widths[i] = gdk_char_width_wc (gfont, (char)i);
}
Are there any other solutions?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]