get_text_font in gtkfont.c problem



Hi,

I posted below e-mail to i18n-list,but I've got no reply.
So I post again to this list.
Does anyone have any suggestions?

-------- Original Message --------
Subject: get_text_font in gtkfont.c problem
Date: Mon, 22 May 2000 21:21:45 +0900
From: teppei@silk.co.jp
To: gtk-i18n-list@gnome.org

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]