]> git.eshelyaron.com Git - emacs.git/commitdiff
(w32_encode_char): Get cached codepage from font_info,
authorAndrew Innes <andrewi@gnu.org>
Wed, 17 Oct 2001 17:48:44 +0000 (17:48 +0000)
committerAndrew Innes <andrewi@gnu.org>
Wed, 17 Oct 2001 17:48:44 +0000 (17:48 +0000)
rather than working it out by calling w32_codepage_for_font for
every glyph.

src/ChangeLog
src/w32term.c

index e27fbf476663e9d04cdeec86f6f61b15d5390c97..d5fc0aca0b7f19f8a813773de93b15724213e796 100644 (file)
@@ -1,3 +1,14 @@
+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
index 0425ed445775a3911a6e9046ab6fdb20a1f7df6b..c8afc114ef15cbfe11325e349741e87aa022d472 100644 (file)
@@ -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.  */