Re: menubar fonts

Mike Fabian <[email protected]>
Newsgroups gmane.emacs.xemacs.user.japanese
Message-ID <[email protected]>
[email protected] writes:

> こんばんは山岡です。
>
> menubar のフォントの指定はどうやれば良いのか、教えて下さい。
> ぼくの現在の環境では menubar にリソースファイル
>
>   mule-packages/etc/app-defaults/ja/Emacs
>
> で設定されている (らしい) ascii も混じった日本語が表示されます。
> etc/sample.Xdefaults に以下のような例があったのですが、
>
> Emacs*menubar*Font: -*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-*
>
> これを書き換えても menubar のフォントは変わりませんでした。
> editres で眺めてみると FontList というリソースがあるようなので、
> 例えば以下のようなものを書いて試してみたのですが、
>
> Emacs*menubar*FontList:\
> 	-*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-*\
> 	-*-*-bold-r-*-*-12-*-*-*-*-*-jisx0208.1983-*
>
> 日本語の 2-byte 文字の各 byte が一文字ずつ表示されるような化けか
> たをします。もしかしたら出来ないのでしょうか?
>
> あるいは、こういう質問の仕方もできるでしょうか。上記のようなリソー
> スの設定を行なわない場合に使われる menubar のフォントは、どこで
> 決定されているのでしょうか?


-- 
Mike Fabian   <[email protected]>   http://www.suse.de/~mfabian
睡眠不足はいい仕事の敵だ。
xemacs-21.4.8-app-defaults.patch (text/x-patch, 3.3 KB)
diff -ru xemacs-21.4.8.orig/etc/Emacs.ad xemacs-21.4.8/etc/Emacs.ad
--- etc/Emacs.ad	Thu Apr 12 20:20:45 2001
+++ etc/Emacs.ad	Tue May 28 15:26:08 2002
@@ -193,6 +193,10 @@
 ! *menubar*FontSet:	-*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-*, \
 !			-*-*-*-*-*-*-*-120-*-jisx0208.1983-0
 !
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+!! FontSet for menus when you use --with-xfs or --with-xim=xlib.
+*fontSet:  -gnu-unifont-medium-r-normal--16-160-75-75-p-80-iso10646-1,-*-*-medium-r-normal--16-*-*-*-c-*-*-*
+
 *menubar*Font: 			-*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-*
 *popup*Font:			-*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-*
 
diff -ru packages.orig/mule-packages/locale/app-defaults/de/Emacs packages/mule-packages/locale/app-defaults/de/Emacs
--- packages/mule-packages/locale/app-defaults/de/Emacs	Wed Jul 29 03:55:11 1998
+++ packages/mule-packages/locale/app-defaults/de/Emacs	Tue May 28 15:21:22 2002
@@ -1,3 +1,8 @@
+! -*- coding: iso-8859-1 -*-
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+!! FontSet for menus when you use --with-xfs or --with-xim=xlib.
+*fontSet:  -gnu-unifont-medium-r-normal--16-160-75-75-p-80-iso10646-1,-*-*-medium-r-normal--16-*-*-*-c-*-*-*
+
 *XlwMenu.resourceLabels: True
 
 
diff -ru packages.orig/mule-packages/locale/app-defaults/fr/Emacs packages/mule-packages/locale/app-defaults/fr/Emacs
--- packages/mule-packages/locale/app-defaults/fr/Emacs	Sun Mar  8 17:13:20 1998
+++ packages/mule-packages/locale/app-defaults/fr/Emacs	Tue May 28 15:20:47 2002
@@ -1,3 +1,8 @@
+! -*- coding: iso-8859-1 -*-
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+!! FontSet for menus when you use --with-xfs or --with-xim=xlib.
+*fontSet:  -gnu-unifont-medium-r-normal--16-160-75-75-p-80-iso10646-1,-*-*-medium-r-normal--16-*-*-*-c-*-*-*
+
 *XlwMenu.resourceLabels: True
 
 
diff -ru packages.orig/mule-packages/locale/app-defaults/ja/Emacs packages/mule-packages/locale/app-defaults/ja/Emacs
--- packages/mule-packages/locale/app-defaults/ja/Emacs	Sun Mar  8 17:13:20 1998
+++ packages/mule-packages/locale/app-defaults/ja/Emacs	Tue May 28 15:20:29 2002
@@ -1,3 +1,4 @@
+! -*- coding: euc-jp -*-
 !    Japanese localization resources for XEmacs.
 ! @(#)Emacs	1.3 96/09/22
 !    Copyright (C) 1996 Sun Microsystems, Inc.
@@ -33,7 +34,7 @@
 ! And fontList is just used under Motif menubar.
 *fontList: -*-gothic-medium-r-normal--14-120-75-75-c-*-*-*:
 !! FontSet for menus when you use --with-xfs or --with-xim=xlib.
-*fontSet: -*-fixed-medium-r-normal--14-*
+*fontSet:  -gnu-unifont-medium-r-normal--16-160-75-75-p-80-iso10646-1,-*-*-medium-r-normal--16-*-*-*-c-*-*-*
 
 ! Starting below here are menu label string which can be translated to
 ! different languages. 
diff -ru packages.orig/mule-packages/locale/app-defaults/ro/Emacs packages/mule-packages/locale/app-defaults/ro/Emacs
--- packages/mule-packages/locale/app-defaults/ro/Emacs	Sun Jul 12 17:57:52 1998
+++ packages/mule-packages/locale/app-defaults/ro/Emacs	Tue May 28 15:23:15 2002
@@ -1,3 +1,8 @@
+! -*- coding: iso-8859-2 -*-
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+!! FontSet for menus when you use --with-xfs or --with-xim=xlib.
+*fontSet:  -gnu-unifont-medium-r-normal--16-160-75-75-p-80-iso10646-1,-*-*-medium-r-normal--16-*-*-*-c-*-*-*
+
 *XlwMenu.resourceLabels: True
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.