help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Latin-1 under MacOS


From: Thomas F. Burdick
Subject: Re: Latin-1 under MacOS
Date: 14 Jan 2004 16:42:04 -0800

Konrad Hinsen <konrad.hinsen@laposte.net> writes:

> I have spent a couple of hours trying to get Emacs on my Mac (the Carbon 
> build) display Latin-1 correctly, with no luck.
> 
> The FAQ recommends (if I interpret it correctly) to add
> 
> (create-fontset-from-fontset-spec 
> "-apple-monaco-medium-r-normal--9-*-*-*-*-*-fontset-monaco,ascii:-apple-m
> onaco-medium-r-normal--9-90-75-75-m-90-mac-roman,latin-iso8859-1:-apple-m
> onaco-medium-r-normal--9-90-75-75-m-90-mac-roman")
> 
> (set-frame-font 
> "-apple-monaco-medium-r-normal--9-*-*-*-*-*-fontset-monaco")
> 
> 
> to .emacs. That doesn't do anything on my system. Everything looks like 
> before (the font is larger than 9 point) and my German and French 
> accented characters (in Latin-1 encoded files copied over from a Linux 
> machine) look messy as before. I also tried
> 
>   (set-frame-font "fontset-monaco")
> 
> (no effect either) and
> 
>   (set-frame-font 'fontset-monaco)
> 
> (puts Emacs into a strange meditation state that only killing seems to 
> be able to terminate).

I'm not sure why that isn't working for you.  Here's what I have in my
.emacs:

;; Apparently we need to create a "fontset" for every Mac font that we use.
;; We need to tell the fontset to include the font for *every* encoding
;; we want it to support, otherwise, we'll get little boxes.  This *sucks*.
(create-fontset-from-fontset-spec
 "-apple-monaco-medium-r-normal--10-*-*-*-*-*-fontset-monaco,
ascii:-apple-monaco-medium-r-normal--10-100-75-75-m-100-mac-roman,
latin-iso8859-1:-apple-monaco-medium-r-normal--10-100-75-75-m-100-mac-roman")

(setq default-frame-alist
      `((font . "fontset-monaco")
        (width . 85) (height . 30)
        ,@default-frame-alist))

Try evaluating the call to create-fontset-from-fontset-spec that you
have by pasting it into the *scratch* buffer, then hitting C-j.  Do
you get any errors?  If not, M-x
set-frame-font<RET>fontset-monaco<RET> should work.

> Konrad (slightly frustrated)

(I'm not sure why it has to be so hard.  It was painful for me getting
this up, too.)

-- 
           /|_     .-----------------------.                        
         ,'  .\  / | No to Imperialist war |                        
     ,--'    _,'   | Wage class war!       |                        
    /       /      `-----------------------'                        
   (   -.  |                               
   |     ) |                               
  (`-.  '--.)                              
   `. )----'                               


reply via email to

[Prev in Thread] Current Thread [Next in Thread]