[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Special characters on Emacs/Mac?
From: |
Gian Uberto Lauri |
Subject: |
Re: Special characters on Emacs/Mac? |
Date: |
Tue, 8 Mar 2005 05:45:10 +0100 |
>>>>> "SM" == Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> Actually I think the problem is not the input, but the font: how do
>> I change my (set-face-font 'default "-apple-Bitstream Vera Sans
>> Mono-regular-r-normal--13-140-75-75-m-120-mac-roman") to use
>> ISO-Latin-1 encoding instead of mac-roman? The documentation
>> didn't really help me there... (and my tries were worthless)
SM> No, the font itself uses mac-roman encoding, so you'd have to
SM> change the font-data itself. Emacs happily uses fonts with
SM> mac-roman encodings, so there's no reason to make such a change.
It was a long and weary battle but I got some advice and solved the
problem with this:
(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")
for 9 points
(create-fontset-from-fontset-spec
"-apple-monaco-medium-r-normal--9-*-*-*-*-*-fontset-monaco,
ascii:-apple-monaco-medium-r-normal--9-90-75-75-m-90-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--9-90-75-75-m-90-mac-roman,
latin-iso8859-1:-apple-monaco-medium-r-normal--9-90-75-75-m-90-mac-roman")
Sadly I lost the references for the credits :(.
Hmmm... I think thak the use of mac roman is in second place for
deserving a rightful spanking (for Apple developers) after the
implementation of cp, mv and so on ... :)
--
/\ ___
/___/\__|_|\_|__|___Gian Uberto Lauri_____________________
//--\ | | \| | Integralista GNUslamico
\/ e coltivatore diretto di software
Re: Special characters on Emacs/Mac?, Ulrich Hobelmann, 2005/03/07