diff options
| author | YAMAMOTO Mitsuharu | 2005-05-22 08:23:06 +0000 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2005-05-22 08:23:06 +0000 |
| commit | 40b9c9c20bfddf20b6337fbe6d801d9785e91dc9 (patch) | |
| tree | 1bab1fb91c72cf8876374a79e3c47c01ff63dd97 /src | |
| parent | 64e9342958694825be1664890dcd22fffcd50d3a (diff) | |
| download | emacs-40b9c9c20bfddf20b6337fbe6d801d9785e91dc9.tar.gz emacs-40b9c9c20bfddf20b6337fbe6d801d9785e91dc9.zip | |
(x_font_name_to_mac_font_name): Sync with trunk for the case that does
not require code conversion.
Diffstat (limited to 'src')
| -rw-r--r-- | src/macterm.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/macterm.c b/src/macterm.c index fe80b779cf3..e79803f7c4d 100644 --- a/src/macterm.c +++ b/src/macterm.c | |||
| @@ -6329,15 +6329,23 @@ x_font_name_to_mac_font_name (xf, mf, mf_decoded, style, cs) | |||
| 6329 | else | 6329 | else |
| 6330 | sprintf (mf_decoded, "%s-%s-%s", foundry, family, cs); | 6330 | sprintf (mf_decoded, "%s-%s-%s", foundry, family, cs); |
| 6331 | 6331 | ||
| 6332 | for (p = mf_decoded; *p; p++) | ||
| 6333 | if (!isascii (*p) || iscntrl (*p)) | ||
| 6334 | break; | ||
| 6335 | |||
| 6336 | if (*p == '\0' | ||
| 6337 | || NILP (coding_system) || NILP (Fcoding_system_p (coding_system))) | ||
| 6338 | strcpy (mf, mf_decoded); | ||
| 6332 | #if 0 | 6339 | #if 0 |
| 6333 | /* MAC_TODO: Fix coding system to use objects */ | 6340 | /* MAC_TODO: Fix coding system to use objects */ |
| 6334 | if (!NILP (coding_system)) | 6341 | else |
| 6335 | { | 6342 | { |
| 6336 | setup_coding_system (coding_system, &coding); | 6343 | setup_coding_system (coding_system, &coding); |
| 6337 | coding.src_multibyte = 1; | 6344 | coding.src_multibyte = 1; |
| 6338 | coding.dst_multibyte = 1; | 6345 | coding.dst_multibyte = 1; |
| 6339 | coding.mode |= CODING_MODE_LAST_BLOCK; | 6346 | coding.mode |= CODING_MODE_LAST_BLOCK; |
| 6340 | encode_coding (&coding, family, mf, strlen (family), sizeof (Str32) - 1); | 6347 | encode_coding (&coding, mf_decoded, mf, |
| 6348 | strlen (mf_decoded), sizeof (Str32) - 1); | ||
| 6341 | mf[coding.produced] = '\0'; | 6349 | mf[coding.produced] = '\0'; |
| 6342 | } | 6350 | } |
| 6343 | #endif | 6351 | #endif |