all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Special Characters on Mac Emacs
@ 2005-03-09 22:28 Ulrich Hobelmann
  2005-03-10  4:22 ` Stefan Monnier
  0 siblings, 1 reply; 27+ messages in thread
From: Ulrich Hobelmann @ 2005-03-09 22:28 UTC (permalink / raw)


Okay, let me wrap up how things work out for me:

(set-keyboard-coding-system 'mac-roman)

seems to be an easy way to make Emacs behave like one would expect it 
to: all special combinations (umlauts, euro symbol, accents) work.

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,
         mule-unicode-0100-24ff:-apple-lucida 
grande-medium-r-normal--0-0-75-75-m-0-mac-roman,
         mule-unicode-2500-33ff:-apple-bitstream vera sans mono 
bold-medium-r-normal--0-0-75-75-m-0-mac-roman,
 
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")

It seems, however, that Emacs really only uses the first (ascii) part, 
so I tried changing it to:

(create-fontset-from-fontset-spec

"-apple-Bitstream Vera Sans 
Mono-regular-r-normal--13-*-*-*-*-*-fontset-monaco,
         ascii:-apple-Bitstream Vera Sans 
Mono-regular-r-normal--13-140-75-75-m-120-mac-roman,
         mule-unicode-0100-24ff:-apple-lucida 
grande-medium-r-normal--0-0-75-75-m-0-mac-roman,
         mule-unicode-2500-33ff:-apple-bitstream vera sans mono 
bold-medium-r-normal--0-0-75-75-m-0-mac-roman,
 
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"
)

Interestingly now Emacs explodes into the debugger and claims that no 
font matches.  For some reason the very same font works fine with:

(set-face-font 'default "-apple-Bitstream Vera Sans 
Mono-regular-r-normal--13-140-75-75-m-120-mac-roman").  Only then the 
special characters don't display correctly.

What is it that makes Emacs find the font in one instance and not in the 
  other?  And what makes Emacs accept the fontset containing a Monaco 
with mac-roman encoding(!) but display special characters, while loading 
the Bitstream font (also with mac-roman encoding) can't display special 
characters?

The emacs info pages can't really help me.  I don't really understand 
what all those characters and numbers in a fontset stand for...  But 
this doesn't change the fact that emacs doesn't even find my font to 
include it in the fontset.

Regards, Ulrich

^ permalink raw reply	[flat|nested] 27+ messages in thread
* Special Characters on Mac Emacs
@ 2005-03-10 16:18 Ulrich Hobelmann
  2005-03-23 11:20 ` YAMAMOTO Mitsuharu
  0 siblings, 1 reply; 27+ messages in thread
From: Ulrich Hobelmann @ 2005-03-10 16:18 UTC (permalink / raw)


Okay, let me wrap up how things work out for me:

(set-keyboard-coding-system 'mac-roman)

seems to be an easy way to make Emacs behave like one would expect it 
to: all special combinations (umlauts, euro symbol, accents) work.

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,
         mule-unicode-0100-24ff:-apple-lucida 
grande-medium-r-normal--0-0-75-75-m-0-mac-roman,
         mule-unicode-2500-33ff:-apple-bitstream vera sans mono 
bold-medium-r-normal--0-0-75-75-m-0-mac-roman,

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")

It seems, however, that Emacs really only uses the first (ascii) part, 
so I tried changing it to:

(create-fontset-from-fontset-spec

"-apple-Bitstream Vera Sans 
Mono-regular-r-normal--13-*-*-*-*-*-fontset-monaco,
         ascii:-apple-Bitstream Vera Sans 
Mono-regular-r-normal--13-140-75-75-m-120-mac-roman,
         mule-unicode-0100-24ff:-apple-lucida 
grande-medium-r-normal--0-0-75-75-m-0-mac-roman,
         mule-unicode-2500-33ff:-apple-bitstream vera sans mono 
bold-medium-r-normal--0-0-75-75-m-0-mac-roman,

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"
)

Interestingly now Emacs explodes into the debugger and claims that no 
font matches.  For some reason the very same font works fine with:

(set-face-font 'default "-apple-Bitstream Vera Sans 
Mono-regular-r-normal--13-140-75-75-m-120-mac-roman").  Only then the 
special characters don't display correctly.

What is it that makes Emacs find the font in one instance and not in the 
  other?  And what makes Emacs accept the fontset containing a Monaco 
with mac-roman encoding(!) but display special characters, while loading 
the Bitstream font (also with mac-roman encoding) can't display special 
characters?

The emacs info pages can't really help me.  I don't really understand 
what all those characters and numbers in a fontset stand for...  But 
this doesn't change the fact that emacs doesn't even find my font to 
include it in the fontset.

Regards, Ulrich

^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2005-04-01 11:56 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-09 22:28 Special Characters on Mac Emacs 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
  -- strict thread matches above, loose matches on Subject: below --
2005-03-10 16:18 Ulrich Hobelmann
2005-03-23 11:20 ` YAMAMOTO Mitsuharu
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

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.