]> git.eshelyaron.com Git - emacs.git/commitdiff
2002-07-03 Andrew Choi <akochoi@shaw.ca>
authorAndrew Choi <akochoi@shaw.ca>
Thu, 4 Jul 2002 02:10:45 +0000 (02:10 +0000)
committerAndrew Choi <akochoi@shaw.ca>
Thu, 4 Jul 2002 02:10:45 +0000 (02:10 +0000)
        * macterm.c (init_font_name_table): Also add entry for
        jisx0201.1976-0 coding for Japanese font.
        (XLoadQueryFont): Use it.

src/ChangeLog
src/macterm.c

index 376bb7d550138dea6b4793bf588abf389faa8d2d..23e7681b2f55a5f9ac2b74df59d3d7cae62521c2 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2002-07-02  Richard M. Stallman  <rms@gnu.org>
 
        * keymap.c (Fdefine_key): Doc fix.
index ae1d7389d190032133b0c71b9da3441f5cc8424c..728f7337f2a862f5cf5d82f7397198a419f010bb 100644 (file)
@@ -10747,8 +10747,14 @@ init_font_name_table ()
                                                              sc));
              }
            else
-             add_font_name_table_entry (mac_to_x_fontname (name, size, style,
-                                                           sc));
+             {
+               add_font_name_table_entry (mac_to_x_fontname (name, size,
+                                                             style, sc));
+               if (smJapanese == sc)
+                 add_font_name_table_entry (mac_to_x_fontname (name, size,
+                                                               style,
+                                                               -smJapanese));
+             }
        }
   
       /* Dispose of the iterators.  */
@@ -10833,7 +10839,7 @@ init_font_name_table ()
                            = mac_to_x_fontname (name,
                                                 assc_entry->fontSize,
                                                 assc_entry->fontStyle,
-                                                smRoman);
+                                                -smJapanese);
                        }
                    }
                }
@@ -11105,7 +11111,7 @@ XLoadQueryFont (Display *dpy, char *fontname)
     if (sscanf (name, 
                "-%*[^-]-%*[^-]-%*[^-]-%*c-%*[^-]--%*[^-]-%*[^-]-%*[^-]-%*[^-]-%*c-%*[^-]-%31s",
                cs) == 1
-       && 0 == strcmp (cs, "mac-roman"))  
+       && 0 == strcmp (cs, "jisx0201.1976-0"))  
       font->mac_scriptcode = smRoman;
   }