Commit 0e804d38 authored by Andrew Innes's avatar Andrew Innes

(w32_encode_char): Get cached codepage from font_info,

rather than working it out by calling w32_codepage_for_font for
every glyph.
parent 19c291d3
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
......
......@@ -1438,7 +1438,7 @@ w32_encode_char (c, char2b, font_info, two_byte_p)
*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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment