Mercurial > emacs
comparison src/w32fns.c @ 29021:be2769eac1a5
(w32_to_x_font): Setup members src_multibyte and
dst_multibyte of coding.
(x_to_w32_font): Likewise.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Sat, 20 May 2000 00:06:41 +0000 |
parents | 6bf3edbe4eba |
children | 2d3d5bf49d4e |
comparison
equal
deleted
inserted
replaced
29020:041255b52348 | 29021:be2769eac1a5 |
---|---|
5734 else | 5734 else |
5735 fonttype = "unknown"; | 5735 fonttype = "unknown"; |
5736 | 5736 |
5737 setup_coding_system (Fcheck_coding_system (Vw32_system_coding_system), | 5737 setup_coding_system (Fcheck_coding_system (Vw32_system_coding_system), |
5738 &coding); | 5738 &coding); |
5739 coding.src_multibyte = 0; | |
5740 coding.dst_multibyte = 1; | |
5739 coding.mode |= CODING_MODE_LAST_BLOCK; | 5741 coding.mode |= CODING_MODE_LAST_BLOCK; |
5740 bufsz = decoding_buffer_size (&coding, LF_FACESIZE); | 5742 bufsz = decoding_buffer_size (&coding, LF_FACESIZE); |
5741 | 5743 |
5742 fontname = alloca(sizeof(*fontname) * bufsz); | 5744 fontname = alloca(sizeof(*fontname) * bufsz); |
5743 decode_coding (&coding, lplogfont->lfFaceName, fontname, | 5745 decode_coding (&coding, lplogfont->lfFaceName, fontname, |
5849 int bufsize; | 5851 int bufsize; |
5850 unsigned char *buf; | 5852 unsigned char *buf; |
5851 | 5853 |
5852 setup_coding_system | 5854 setup_coding_system |
5853 (Fcheck_coding_system (Vw32_system_coding_system), &coding); | 5855 (Fcheck_coding_system (Vw32_system_coding_system), &coding); |
5856 coding.src_multibyte = 1; | |
5857 coding.dst_multibyte = 1; | |
5854 bufsize = encoding_buffer_size (&coding, strlen (name)); | 5858 bufsize = encoding_buffer_size (&coding, strlen (name)); |
5855 buf = (unsigned char *) alloca (bufsize); | 5859 buf = (unsigned char *) alloca (bufsize); |
5856 coding.mode |= CODING_MODE_LAST_BLOCK; | 5860 coding.mode |= CODING_MODE_LAST_BLOCK; |
5857 encode_coding (&coding, name, buf, strlen (name), bufsize); | 5861 encode_coding (&coding, name, buf, strlen (name), bufsize); |
5858 if (coding.produced >= LF_FACESIZE) | 5862 if (coding.produced >= LF_FACESIZE) |