all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Problems with Emacs CVS Head in MacOS (Carbon)
@ 2005-06-16  9:41 Alberto Manuel Brandão Simões
       [not found] ` <7e98d6cf1290b98d59f2f17f864e8d2c@Web.DE>
  2005-06-25 23:25 ` Takashi Hiromatsu
  0 siblings, 2 replies; 7+ messages in thread
From: Alberto Manuel Brandão Simões @ 2005-06-16  9:41 UTC (permalink / raw)



Hi, all.

I compiled emacs cvs head without problems under Tiger using --without-x 
and --with-carbon. It works very well, but I have a slight problem with 
faces.

The default font used is too small. When I try to change the font used, 
or if I try to change its size I loose extended ascii characters (like 
'ç' or 'ã'). They appear as a small rectangle/box.

Anybody has any idea why this happens?

Thanks in advance.
Kind regards,
Alberto
-- 
Alberto Simões - Departamento de Informática - Universidade do Minho
                  Campus de Gualtar - 4710-057 Braga - Portugal

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

* Re: Problems with Emacs CVS Head in MacOS (Carbon)
       [not found] ` <7e98d6cf1290b98d59f2f17f864e8d2c@Web.DE>
@ 2005-06-16 10:26   ` Alberto Manuel Brandão Simões
  2005-06-16 10:57     ` Peter Dyballa
  0 siblings, 1 reply; 7+ messages in thread
From: Alberto Manuel Brandão Simões @ 2005-06-16 10:26 UTC (permalink / raw)
  Cc: emacs



Peter Dyballa wrote:
> 
> Am 16.06.2005 um 11:41 schrieb Alberto Manuel Brandão Simões:
> 
>> The default font used is too small. When I try to change the font 
>> used, or if I try to change its size I loose extended ascii characters 
>> (like 'ç' or 'ã'). They appear as a small rectangle/box.
>>
>> Anybody has any idea why this happens?
> 
> 
> The default font comes from the bitmap etl font family (GNU Intlfonts); 
> it has obviously some very good support built into Emacs. When you're 
> going to use any of the Mac fonts you should use MacRoman encoding in 
> your text files. Every non-Mac encoding (non-MacGreek, MacJapanese, 
> MacChinese, MacKorean, MacCyrillic ...) is not really supported in 
> Carbon Emacs -- the legacy of QuickDraw!
> 
> Do you know how to create your own fontsets in Carbon Emacs?

No. Is there any way where I can find a howto or tutorial?

Thanks,
Alberto

-- 
Alberto Simões - Departamento de Informática - Universidade do Minho
                  Campus de Gualtar - 4710-057 Braga - Portugal

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

* Re: Problems with Emacs CVS Head in MacOS (Carbon)
  2005-06-16 10:26   ` Alberto Manuel Brandão Simões
@ 2005-06-16 10:57     ` Peter Dyballa
  2005-06-24 13:55       ` Alberto Simões
       [not found]       ` <mailman.1084.1119621391.2857.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 7+ messages in thread
From: Peter Dyballa @ 2005-06-16 10:57 UTC (permalink / raw)
  Cc: emacs


Am 16.06.2005 um 12:26 schrieb Alberto Manuel Brandão Simões:

> No. Is there any way where I can find a howto or tutorial?
>

Not yet, because Carbon Emacs is an impasse (Unicode Emacs 23 will use 
ATSUI). Generally you check the functions' documentation and get lost 
in it. (After years of this abuse you might feel different.)

First you'll need to know what your Mac is offering: M-x set-frame-font 
TAB TAB and go to the *Completions* buffer. Save it to a name you've 
checked and even better: set and put into a register before (if you try 
to expand some file name the *Completions* buffer's contents will be 
overwritten with new contents).

Now you can start to write an Elisp file with a contents like (notice 
the two different functions):

	(create-fontset-from-fontset-spec
	"-*-andale mono-medium-r-*-*-0-*-*-*-*-*-fontset-10pt_andale_mono,
              latin-iso8859-1:-*-andale 
mono-medium-r-normal--10-100-75-75-m-100-mac-roman,
              latin-iso8859-2:-*-andale 
mono-medium-r-normal--10-100-75-75-m-100-mac-roman,
              latin-iso8859-3:-*-andale 
mono-medium-r-normal--10-100-75-75-m-100-mac-roman,
              latin-iso8859-4:-*-andale 
mono-medium-r-normal--10-100-75-75-m-100-mac-roman,
           cyrillic-iso8859-5:-*-andale 
mono-medium-r-normal--10-100-75-75-m-100-mac-roman,
             arabic-iso8859-6:-*-andale 
mono-medium-r-normal--10-100-75-75-m-100-mac-roman,
              greek-iso8859-7:-*-andale 
mono-medium-r-normal--10-100-75-75-m-100-mac-roman,
             hebrew-iso8859-8:-*-andale 
mono-medium-r-normal--10-100-75-75-m-100-mac-roman,
              latin-iso8859-9:-*-andale 
mono-medium-r-normal--10-100-75-75-m-100-mac-roman,
             latin-iso8859-12:-*-andale 
mono-medium-r-normal--10-100-75-75-m-100-mac-roman,
             latin-iso8859-13:-*-andale 
mono-medium-r-normal--10-100-75-75-m-100-mac-roman,
             latin-iso8859-14:-*-andale 
mono-medium-r-normal--10-100-75-75-m-100-mac-roman,
             latin-iso8859-15:-*-andale 
mono-medium-r-normal--10-100-75-75-m-100-mac-roman,
             latin-iso8859-16:-*-andale 
mono-medium-r-normal--10-100-75-75-m-100-mac-roman,
              mac-roman-lower:-*-andale 
mono-medium-r-normal--10-100-75-75-m-100-mac-roman,
              mac-roman-upper:-*-andale 
mono-medium-r-normal--10-100-75-75-m-100-mac-roman,
       mule-unicode-0100-24ff:-*-andale 
mono-medium-r-normal--10-100-75-75-m-100-mac-roman,
       mule-unicode-2500-33ff:-*-andale 
mono-medium-r-normal--10-100-75-75-m-100-mac-roman,
       mule-unicode-e000-ffff:-*-andale 
mono-medium-r-normal--10-100-75-75-m-100-mac-roman,
                   iso10646-1:-*-andale 
mono-medium-r-normal--10-100-75-75-m-100-mac-roman,
                        ascii:-*-andale 
mono-medium-r-normal--10-100-75-75-m-100-mac-roman" )
;
	(create-fontset-from-mac-roman-font 
"-*-monaco-medium-r-*-*-9-*-*-*-*-*-mac-roman"    	   	     	  nil 
"09pt_Mmonaco")
	(create-fontset-from-mac-roman-font 
"-*-monaco-medium-r-*-*-10-*-*-*-*-*-mac-roman"   	   	     	  nil 
"10pt_Mmonaco")
	(create-fontset-from-mac-roman-font 
"-*-monaco-medium-r-*-*-11-*-*-*-*-*-mac-roman"   	   	     	  nil 
"11pt_Mmonaco")

The first function only uses the bitmaps provided in the font suitcases 
(.dfont files in Mac OS X), i.e. you can set different size values but 
in the end you have always the same size on screen -- except Carbon 
Emacs chooses to take some non-existing glyph from another font! This 
one can be right-sized then. This function was intended to support 
non-Mac encodings, but it fails IMO.

The second function does a better job in sizes. It too fails for 
non-Mac encodings. The ``M´´ in the fontset names was chosen to make 
them distinct and to see immediately how they were defined (with 
Minimal effort). Could be you need to set for these to work

	(defvar scalable-fonts-allowed t)

Finish the Elisp file with

	(provide 'site-fontsets-carbon)

put it in the load-path (C-h v load-path RET) outside the application 
bundle and put into .emacs:

	(require 'site-fontsets-carbon)

in a clause for not launching it in Terminal. GNU Emacs compiled for 
X11 supports Unicode glyphs *much* better! Have you found transparancy? 
(setq mac-transparency-alpha 80)


There is also this (archive is slow):

------------------------------- Info --------------------------------
List Post: <mailto:macosx-emacs@email.esm.psu.edu>
List Archives: <http://www.esm.psu.edu/mac-tex/MacOSX-Emacs-Digests/>


--
Greetings

   Pete

Real Time, adj.:
	Here and now, as opposed to fake time, which only occurs there and 
then.

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

* Re: Problems with Emacs CVS Head in MacOS (Carbon)
  2005-06-16 10:57     ` Peter Dyballa
@ 2005-06-24 13:55       ` Alberto Simões
  2005-06-24 14:29         ` Peter Dyballa
       [not found]       ` <mailman.1084.1119621391.2857.help-gnu-emacs@gnu.org>
  1 sibling, 1 reply; 7+ messages in thread
From: Alberto Simões @ 2005-06-24 13:55 UTC (permalink / raw)
  Cc: emacs

Hi, again.
Got some time for tests, and these are my problems:

. I didn't understand if I should choose from one of the second 
approach. I tried the second one, adding to my .emacs:

(create-fontset-from-mac-roman-font "-*-bitstream vera sans 
mono-medium-r-*-*-9-*-*-*-*-*-mac-roman"                          nil 
"09pt_Bitstream")
(create-fontset-from-mac-roman-font "-*-bitstream vera sans 
mono-medium-r-*-*-10-*-*-*-*-*-mac-roman"                         nil 
"10pt_Bitstream")
(create-fontset-from-mac-roman-font "-*-bitstream vera sans 
mono-medium-r-*-*-11-*-*-*-*-*-mac-roman"                         nil 
"11pt_Bitstream")

(defvar scalable-fonts-allowed t)

But now, I do not know what to do with these fontsets to activate them

Thanks
Alberto

Peter Dyballa wrote:
> 
> Am 16.06.2005 um 12:26 schrieb Alberto Manuel Brandão Simões:
> 
>> No. Is there any way where I can find a howto or tutorial?
>>
> 
> Not yet, because Carbon Emacs is an impasse (Unicode Emacs 23 will use 
> ATSUI). Generally you check the functions' documentation and get lost in 
> it. (After years of this abuse you might feel different.)
> 
> First you'll need to know what your Mac is offering: M-x set-frame-font 
> TAB TAB and go to the *Completions* buffer. Save it to a name you've 
> checked and even better: set and put into a register before (if you try 
> to expand some file name the *Completions* buffer's contents will be 
> overwritten with new contents).
> 
> Now you can start to write an Elisp file with a contents like (notice 
> the two different functions):
> 
>     (create-fontset-from-fontset-spec
>     "-*-andale mono-medium-r-*-*-0-*-*-*-*-*-fontset-10pt_andale_mono,
>              latin-iso8859-1:-*-andale 
> mono-medium-r-normal--10-100-75-75-m-100-mac-roman,
>              latin-iso8859-2:-*-andale 
> mono-medium-r-normal--10-100-75-75-m-100-mac-roman,
>              latin-iso8859-3:-*-andale 
> mono-medium-r-normal--10-100-75-75-m-100-mac-roman,
>              latin-iso8859-4:-*-andale 
> mono-medium-r-normal--10-100-75-75-m-100-mac-roman,
>           cyrillic-iso8859-5:-*-andale 
> mono-medium-r-normal--10-100-75-75-m-100-mac-roman,
>             arabic-iso8859-6:-*-andale 
> mono-medium-r-normal--10-100-75-75-m-100-mac-roman,
>              greek-iso8859-7:-*-andale 
> mono-medium-r-normal--10-100-75-75-m-100-mac-roman,
>             hebrew-iso8859-8:-*-andale 
> mono-medium-r-normal--10-100-75-75-m-100-mac-roman,
>              latin-iso8859-9:-*-andale 
> mono-medium-r-normal--10-100-75-75-m-100-mac-roman,
>             latin-iso8859-12:-*-andale 
> mono-medium-r-normal--10-100-75-75-m-100-mac-roman,
>             latin-iso8859-13:-*-andale 
> mono-medium-r-normal--10-100-75-75-m-100-mac-roman,
>             latin-iso8859-14:-*-andale 
> mono-medium-r-normal--10-100-75-75-m-100-mac-roman,
>             latin-iso8859-15:-*-andale 
> mono-medium-r-normal--10-100-75-75-m-100-mac-roman,
>             latin-iso8859-16:-*-andale 
> mono-medium-r-normal--10-100-75-75-m-100-mac-roman,
>              mac-roman-lower:-*-andale 
> mono-medium-r-normal--10-100-75-75-m-100-mac-roman,
>              mac-roman-upper:-*-andale 
> mono-medium-r-normal--10-100-75-75-m-100-mac-roman,
>       mule-unicode-0100-24ff:-*-andale 
> mono-medium-r-normal--10-100-75-75-m-100-mac-roman,
>       mule-unicode-2500-33ff:-*-andale 
> mono-medium-r-normal--10-100-75-75-m-100-mac-roman,
>       mule-unicode-e000-ffff:-*-andale 
> mono-medium-r-normal--10-100-75-75-m-100-mac-roman,
>                   iso10646-1:-*-andale 
> mono-medium-r-normal--10-100-75-75-m-100-mac-roman,
>                        ascii:-*-andale 
> mono-medium-r-normal--10-100-75-75-m-100-mac-roman" )
> ;
>     (create-fontset-from-mac-roman-font 
> "-*-monaco-medium-r-*-*-9-*-*-*-*-*-mac-roman"                          
> nil "09pt_Mmonaco")
>     (create-fontset-from-mac-roman-font 
> "-*-monaco-medium-r-*-*-10-*-*-*-*-*-mac-roman"                         
> nil "10pt_Mmonaco")
>     (create-fontset-from-mac-roman-font 
> "-*-monaco-medium-r-*-*-11-*-*-*-*-*-mac-roman"                         
> nil "11pt_Mmonaco")
> 
> The first function only uses the bitmaps provided in the font suitcases 
> (.dfont files in Mac OS X), i.e. you can set different size values but 
> in the end you have always the same size on screen -- except Carbon 
> Emacs chooses to take some non-existing glyph from another font! This 
> one can be right-sized then. This function was intended to support 
> non-Mac encodings, but it fails IMO.
> 
> The second function does a better job in sizes. It too fails for non-Mac 
> encodings. The ``M´´ in the fontset names was chosen to make them 
> distinct and to see immediately how they were defined (with Minimal 
> effort). Could be you need to set for these to work
> 
>     (defvar scalable-fonts-allowed t)
> 
> Finish the Elisp file with
> 
>     (provide 'site-fontsets-carbon)
> 
> put it in the load-path (C-h v load-path RET) outside the application 
> bundle and put into .emacs:
> 
>     (require 'site-fontsets-carbon)
> 
> in a clause for not launching it in Terminal. GNU Emacs compiled for X11 
> supports Unicode glyphs *much* better! Have you found transparancy? 
> (setq mac-transparency-alpha 80)
> 
> 
> There is also this (archive is slow):
> 
> ------------------------------- Info --------------------------------
> List Post: <mailto:macosx-emacs@email.esm.psu.edu>
> List Archives: <http://www.esm.psu.edu/mac-tex/MacOSX-Emacs-Digests/>
> 
> 
> -- 
> Greetings
> 
>   Pete
> 
> Real Time, adj.:
>     Here and now, as opposed to fake time, which only occurs there and 
> then.
> 

-- 
Alberto Simões - Departamento de Informática - Universidade do Minho
                  Campus de Gualtar - 4710-057 Braga - Portugal

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

* Re: Problems with Emacs CVS Head in MacOS (Carbon)
  2005-06-24 13:55       ` Alberto Simões
@ 2005-06-24 14:29         ` Peter Dyballa
  0 siblings, 0 replies; 7+ messages in thread
From: Peter Dyballa @ 2005-06-24 14:29 UTC (permalink / raw)
  Cc: emacs help


Am 24.06.2005 um 15:55 schrieb Alberto Simões:

> But now, I do not know what to do with these fontsets to activate them
>

Usually S-down-mouse-1 invokes mouse-set-font, which pops up a menu 
from which you can choose fonts or fontsets. You can add fontsets to 
these alists (I have Carbon Emacs 22 and 23, mEV is (defconst mEV 
(emacs-version) DOCSTRING)):

         (setq initial-frame-alist '(
           (mouse-color    . "midnightblue")
           (foreground-color . "grey20")
           (background-color . "alice blue")
           (if (string-match "22" mEV)
             (font . "fontset-13pt_courier_new")
             (font . "fontset-10pt_monotype_courier"))
           (top . 10) (left . 650) (width . 91) (height . 60)))
         (setq default-frame-alist '(
           (background-color . "ghost white")
           (foreground-color . "grey10")
           (vertical-scroll-bars . left)
           (cursor-color . "purple")          (cursor-type . box)
           (if (string-match "22" mEV)
             (font . "fontset-13pt_courier_new")
             (font . "fontset-09pt_bitstream_courier"))
           (top . 20) (left . 150) (width . 89) (height . 56)))


Do you know this:
------------------------------- Info --------------------------------
List Post: <mailto:macosx-emacs@email.esm.psu.edu>
List Archives: <http://www.esm.psu.edu/mac-tex/MacOSX-Emacs-Digests/>

--
Greetings

   Pete

"One person with a belief is a social power equal to ninety-nine who 
have only interests." - John Stuart Mill

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

* Re: Problems with Emacs CVS Head in MacOS (Carbon)
  2005-06-16  9:41 Problems with Emacs CVS Head in MacOS (Carbon) Alberto Manuel Brandão Simões
       [not found] ` <7e98d6cf1290b98d59f2f17f864e8d2c@Web.DE>
@ 2005-06-25 23:25 ` Takashi Hiromatsu
  1 sibling, 0 replies; 7+ messages in thread
From: Takashi Hiromatsu @ 2005-06-25 23:25 UTC (permalink / raw)


Please try Carbon Emacs Package that has many pre-defined fontsets by
carbon-font.el
    http://home.att.ne.jp/alpha/z123/emacs-mac-e.html
    http://www.emacswiki.org/cgi-bin/emacs-en/CarbonEmacsPackage

T.Hiromatsu

At Thu, 16 Jun 2005 10:41:22 +0100,
Alberto Manuel Brandão Simões wrote:
> 
> 
> Hi, all.
> 
> I compiled emacs cvs head without problems under Tiger using --without-x 
> and --with-carbon. It works very well, but I have a slight problem with 
> faces.
> 
> The default font used is too small. When I try to change the font used, 
> or if I try to change its size I loose extended ascii characters (like 
> 'ç' or 'ã'). They appear as a small rectangle/box.
> 
> Anybody has any idea why this happens?
> 
> Thanks in advance.
> Kind regards,
> Alberto
> -- 
> Alberto Simões - Departamento de Informática - Universidade do Minho
>                   Campus de Gualtar - 4710-057 Braga - Portugal
> 
> 
> _______________________________________________
> Help-gnu-emacs mailing list
> Help-gnu-emacs@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
> 

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

* Re: Problems with Emacs CVS Head in MacOS (Carbon)
       [not found]       ` <mailman.1084.1119621391.2857.help-gnu-emacs@gnu.org>
@ 2005-06-28  7:13         ` Stefan Monnier
  0 siblings, 0 replies; 7+ messages in thread
From: Stefan Monnier @ 2005-06-28  7:13 UTC (permalink / raw)


> Got some time for tests, and these are my problems:

> . I didn't understand if I should choose from one of the second
>   approach. I tried the second one, adding to my .emacs:

> (create-fontset-from-mac-roman-font "-*-bitstream vera sans
> mono-medium-r-*-*-9-*-*-*-*-*-mac-roman"                          nil
> "09pt_Bitstream")
> (create-fontset-from-mac-roman-font "-*-bitstream vera sans
> mono-medium-r-*-*-10-*-*-*-*-*-mac-roman"                         nil
> "10pt_Bitstream")
> (create-fontset-from-mac-roman-font "-*-bitstream vera sans
> mono-medium-r-*-*-11-*-*-*-*-*-mac-roman"                         nil
> "11pt_Bitstream")

> (defvar scalable-fonts-allowed t)

> But now, I do not know what to do with these fontsets to activate them

Please send these (and everything else related to Emacs-CVS, as explained
in the INSTALL.CVS file) to emacs-devel@gnu.org or emacs-pretest-bug@gnu.org
(via M-x report-emacs-bug) so that the maintainers can actually fix the
problems you're seeing before the release.


        Stefan

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

end of thread, other threads:[~2005-06-28  7:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-16  9:41 Problems with Emacs CVS Head in MacOS (Carbon) Alberto Manuel Brandão Simões
     [not found] ` <7e98d6cf1290b98d59f2f17f864e8d2c@Web.DE>
2005-06-16 10:26   ` Alberto Manuel Brandão Simões
2005-06-16 10:57     ` Peter Dyballa
2005-06-24 13:55       ` Alberto Simões
2005-06-24 14:29         ` Peter Dyballa
     [not found]       ` <mailman.1084.1119621391.2857.help-gnu-emacs@gnu.org>
2005-06-28  7:13         ` Stefan Monnier
2005-06-25 23:25 ` Takashi Hiromatsu

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.