get_text_font in gtkfont.c problem



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]