rather than working it out by calling w32_codepage_for_font for
every glyph.
+2001-10-17 Andrew Innes <andrewi@gnu.org>
+
+ * fontset.h (struct font_info) [WINDOWSNT]: Add codepage field.
+
+ * w32fns.c (w32_load_system_font): Cache codepage for font, in
+ font_info.charset field.
+
+ * w32term.c (w32_encode_char): Get cached codepage from font_info,
+ rather than working it out by calling w32_codepage_for_font for
+ every glyph.
+
2001-10-17 Andrew Innes <andrewi@gnu.org>
* w32term.c (w32_read_socket): Determine clipping rectangle for
*char2b = BUILD_WCHAR_T (sjis1, sjis2);
}
}
- codepage = w32_codepage_for_font (font_info->name);
+ codepage = font_info->codepage;
/* If charset is not ASCII or Latin-1, may need to move it into
Unicode space. */