From: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Cc: emacs-devel@gnu.org
Subject: Re: Special Characters on Mac Emacs
Date: Wed, 23 Mar 2005 20:20:59 +0900 [thread overview]
Message-ID: <wleke6vc9w.wl%mituharu@math.s.chiba-u.ac.jp> (raw)
In-Reply-To: <d0prv1$2t3$1@sea.gmane.org>
>>>>> On Thu, 10 Mar 2005 10:18:02 -0600, Ulrich Hobelmann <u.hobelmann@web.de> said:
> To make Emacs display the stuff the following works:
> (create-fontset-from-fontset-spec
> "-apple-monaco-medium-r-normal--12-*-*-*-*-*-fontset-monaco,
> ascii:-apple-monaco-medium-r-normal--12-120-75-75-m-120-mac-roman,
(snip)
> latin-iso8859-15:-apple-monaco-medium-r-normal--12-120-75-75-m-120-mac-roman,
> latin-iso8859-1:-apple-monaco-medium-r-normal--12-120-75-75-m-120-mac-roman"
> )
> (set-face-font 'default
> "-apple-monaco-medium-r-normal--12-*-*-*-*-*-fontset-monaco")
I'd rather not recommend directly specifying mac-roman fonts for
latin-iso8859-1 or latin-iso8859-15 character set. Because mac-roman
does not have all the characters for them, some characters are
displayed with wrong glyph. If it had all,
`face-font-registry-alternatives' would be set accordingly.
(If you do not care about wrong glyph, the easiest way is to add
(custom-set-variables
'(face-font-registry-alternatives
'(("iso8859-1" "mac-roman") ("iso8859-15" "mac-roman"))))
to ~/.emacs. Then mac-roman fonts can be used in place of
iso8859-1(15) fonts in many cases.)
Maybe `create-fontset-from-mac-roman-font' or `fontset-add-mac-fonts'
mentioned in
http://lists.gnu.org/archive/html/emacs-devel/2004-12/msg00004.html
would be of help. Also, the following patch makes "fontset-mac" a
fallback fontset, and if one specifies a mac-roman font via the -fn
option or preferences like
% defaults write org.gnu.Emacs Emacs.font '-apple-lucida sans typewriter-medium-r-normal--14-*-75-75-m-*-mac-roman'
then `create-fontset-from-mac-roman-font' is automatically used to
augment the specified font with many accented characters.
YAMAMOTO Mitsuharu
mituharu@math.s.chiba-u.ac.jp
Index: lisp/term/mac-win.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/term/mac-win.el,v
retrieving revision 1.35
diff -c -r1.35 mac-win.el
*** lisp/term/mac-win.el 16 Mar 2005 03:23:34 -0000 1.35
--- lisp/term/mac-win.el 23 Mar 2005 10:43:45 -0000
***************
*** 1577,1583 ****
(new-fontset font (x-complement-fontset-spec xlfd-fields nil))
;; Create a fontset from FONT. The fontset name is
;; generated from FONT.
! (create-fontset-from-ascii-font font resolved-name "startup"))))
;; Apply a geometry resource to the initial frame. Put it at the end
;; of the alist, so that anything specified on the command line takes
--- 1577,1586 ----
(new-fontset font (x-complement-fontset-spec xlfd-fields nil))
;; Create a fontset from FONT. The fontset name is
;; generated from FONT.
! (if (and (string= "mac" (aref xlfd-fields xlfd-regexp-registry-subnum))
! (string= "roman" (aref xlfd-fields xlfd-regexp-encoding-subnum)))
! (create-fontset-from-mac-roman-font font resolved-name "startup")
! (create-fontset-from-ascii-font font resolved-name "startup")))))
;; Apply a geometry resource to the initial frame. Put it at the end
;; of the alist, so that anything specified on the command line takes
Index: src/macfns.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/macfns.c,v
retrieving revision 1.54
diff -c -r1.54 macfns.c
*** src/macfns.c 16 Mar 2005 08:06:33 -0000 1.54
--- src/macfns.c 23 Mar 2005 10:43:45 -0000
***************
*** 2632,2637 ****
--- 2632,2639 ----
font = x_new_font (f, "-ETL-fixed-medium-r-*--*-160-*-*-*-*-iso8859-1");
/* If those didn't work, look for something which will at least work. */
if (! STRINGP (font))
+ font = x_new_fontset (f, "-etl-fixed-medium-r-normal-*-16-*-*-*-*-*-fontset-mac");
+ if (! STRINGP (font))
font = x_new_font (f, "-*-monaco-*-12-*-mac-roman");
if (! STRINGP (font))
font = x_new_font (f, "-*-courier-*-10-*-mac-roman");
***************
*** 3732,3737 ****
--- 3734,3741 ----
font = x_new_font (f, "-ETL-fixed-medium-r-*--*-160-*-*-*-*-iso8859-1");
/* If those didn't work, look for something which will at least work. */
if (! STRINGP (font))
+ font = x_new_fontset (f, "-etl-fixed-medium-r-normal-*-16-*-*-*-*-*-fontset-mac");
+ if (! STRINGP (font))
font = x_new_font (f, "-*-monaco-*-12-*-mac-roman");
if (! STRINGP (font))
font = x_new_font (f, "-*-courier-*-10-*-mac-roman");
next prev parent reply other threads:[~2005-03-23 11:20 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-10 16:18 Special Characters on Mac Emacs Ulrich Hobelmann
2005-03-23 11:20 ` YAMAMOTO Mitsuharu [this message]
2005-03-23 15:49 ` Sébastien Kirche
2005-03-24 3:00 ` YAMAMOTO Mitsuharu
2005-03-24 12:50 ` Sébastien Kirche
2005-03-25 6:48 ` YAMAMOTO Mitsuharu
2005-03-25 9:50 ` YAMAMOTO Mitsuharu
2005-03-25 15:34 ` Sébastien Kirche
2005-03-26 5:00 ` YAMAMOTO Mitsuharu
2005-03-31 3:43 ` Steven Tamm
2005-03-31 11:20 ` Sébastien Kirche
2005-03-29 10:03 ` Sébastien Kirche
2005-04-01 11:02 ` YAMAMOTO Mitsuharu
2005-04-01 11:56 ` Sébastien Kirche
-- strict thread matches above, loose matches on Subject: below --
2005-03-09 22:28 Ulrich Hobelmann
2005-03-10 4:22 ` Stefan Monnier
2005-03-10 6:39 ` Ulrich Hobelmann
2005-03-10 8:50 ` Sébastien Kirche
2005-03-10 10:49 ` Peter Dyballa
[not found] ` <mailman.3264.1110455297.32256.help-gnu-emacs@gnu.org>
2005-03-10 13:39 ` Stefan Monnier
2005-03-10 14:37 ` Peter Dyballa
[not found] ` <mailman.3293.1110466438.32256.help-gnu-emacs@gnu.org>
2005-03-10 14:50 ` Stefan Monnier
2005-03-10 15:50 ` Peter Dyballa
2005-03-10 16:58 ` Stefan Monnier
2005-03-10 16:21 ` Ulrich Hobelmann
[not found] ` <mailman.3306.1110471038.32256.help-gnu-emacs@gnu.org>
2005-03-10 16:23 ` Ulrich Hobelmann
2005-03-10 16:25 ` Thien-Thi Nguyen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=wleke6vc9w.wl%mituharu@math.s.chiba-u.ac.jp \
--to=mituharu@math.s.chiba-u.ac.jp \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.