aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Choi2002-07-04 02:10:45 +0000
committerAndrew Choi2002-07-04 02:10:45 +0000
commita0f593ff6ad8e60f7ca544c6649456f0523d0a8e (patch)
tree8021467f11fd582597dff09f4bd311e296203f44 /src
parent210accc8a774a5f4dcbef36c598620c8065cff1c (diff)
downloademacs-a0f593ff6ad8e60f7ca544c6649456f0523d0a8e.tar.gz
emacs-a0f593ff6ad8e60f7ca544c6649456f0523d0a8e.zip
2002-07-03 Andrew Choi <akochoi@shaw.ca>
* macterm.c (init_font_name_table): Also add entry for jisx0201.1976-0 coding for Japanese font. (XLoadQueryFont): Use it.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/macterm.c14
2 files changed, 16 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 376bb7d5501..23e7681b2f5 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12002-07-03 Andrew Choi <akochoi@shaw.ca>
2
3 * macterm.c (init_font_name_table): Also add entry for
4 jisx0201.1976-0 coding for Japanese font.
5 (XLoadQueryFont): Use it.
6
12002-07-02 Richard M. Stallman <rms@gnu.org> 72002-07-02 Richard M. Stallman <rms@gnu.org>
2 8
3 * keymap.c (Fdefine_key): Doc fix. 9 * keymap.c (Fdefine_key): Doc fix.
diff --git a/src/macterm.c b/src/macterm.c
index ae1d7389d19..728f7337f2a 100644
--- a/src/macterm.c
+++ b/src/macterm.c
@@ -10747,8 +10747,14 @@ init_font_name_table ()
10747 sc)); 10747 sc));
10748 } 10748 }
10749 else 10749 else
10750 add_font_name_table_entry (mac_to_x_fontname (name, size, style, 10750 {
10751 sc)); 10751 add_font_name_table_entry (mac_to_x_fontname (name, size,
10752 style, sc));
10753 if (smJapanese == sc)
10754 add_font_name_table_entry (mac_to_x_fontname (name, size,
10755 style,
10756 -smJapanese));
10757 }
10752 } 10758 }
10753 10759
10754 /* Dispose of the iterators. */ 10760 /* Dispose of the iterators. */
@@ -10833,7 +10839,7 @@ init_font_name_table ()
10833 = mac_to_x_fontname (name, 10839 = mac_to_x_fontname (name,
10834 assc_entry->fontSize, 10840 assc_entry->fontSize,
10835 assc_entry->fontStyle, 10841 assc_entry->fontStyle,
10836 smRoman); 10842 -smJapanese);
10837 } 10843 }
10838 } 10844 }
10839 } 10845 }
@@ -11105,7 +11111,7 @@ XLoadQueryFont (Display *dpy, char *fontname)
11105 if (sscanf (name, 11111 if (sscanf (name,
11106 "-%*[^-]-%*[^-]-%*[^-]-%*c-%*[^-]--%*[^-]-%*[^-]-%*[^-]-%*[^-]-%*c-%*[^-]-%31s", 11112 "-%*[^-]-%*[^-]-%*[^-]-%*c-%*[^-]--%*[^-]-%*[^-]-%*[^-]-%*[^-]-%*c-%*[^-]-%31s",
11107 cs) == 1 11113 cs) == 1
11108 && 0 == strcmp (cs, "mac-roman")) 11114 && 0 == strcmp (cs, "jisx0201.1976-0"))
11109 font->mac_scriptcode = smRoman; 11115 font->mac_scriptcode = smRoman;
11110 } 11116 }
11111 11117