|
|
Subject: Re: Font choice, X-Faces with Aquamacs ? - msg#00204
List: emacs.macintosh.osx
Am 23.05.2005 um 22:24 schrieb David Reitter:
Maybe you have 11pt versions of the font installed
I only have the pure Linux TrueType fonts in /Library/Fonts. In my case
they are no font suitcases, so they can't be neither 11pt nor 12pt. I
have Panther, and you have Tiger -- could be that's the difference. And
I have (defvar scalable-fonts-allowed t) in my .emacs ...
--
Greetings
Pete
"engineer: a mechanism for converting caffeine into designs"
Was this page helpful?
Thread at a glance:
Previous Message by Date:
click to view message preview
Re: printing in emacs cvs
Am 23.05.2005 um 20:17 schrieb Flatman:
I'd like to print accented characters with emacs cvs on osx
I can see the accented chars nicely on screen ... but when printing I
got weird characters :-(
Also I'm not able to use 'postscript print buffer' ...
IMO Apple's software that converts PS to PDF is faulty, in Panther and
probably Tiger too.
When I do PostScript Print Buffer (or Region) or the same in (B+W) the
actual functions used are
ps-print-buffer-with-faces/ps-print-region-with-faces or
ps-print-buffer/ps-print-region. They produce valid PostScript code.
Right now the only support ISO Latin-1, so you see a message telling
you that some characters can't be printed. If your printer is a
PostScript one it has no problems to print the buffer or the region
correctly, according to the limitation the glyphs have to be ISO
Latin-1.
If your printer is not PS, then there is the chance that the printed
output can be strange looking. You get better results with Ghostscript.
The Ghostscript script ps2pdf converts the PS code correctly to PDF
that Preview or any other PDF viewer can display.
Besides this you *should* do some customization by invoking M-x
customize-group printing RET, and particularly ps-print and its
subgroups. Then you'll see that you can't print in the fontset's face
but are restricted to the usual 35 PostScript 1 fonts that are always
built into the printer.
If you have Ghostscript installed you can change the ps-print-*
settings of the menu to the corresponding ps-spool-* functions. Now you
'print' into a buffer, *PostScript*. Marking this 'print' spool
buffer's contents you can pass it to a UNIX command, ps2pdf, or
ps2pdf12 or ps2pdf13 or ps2pdf14 for the PDF version you wish to get,
with the options "- -". You get then a *Shell Command Output* with the
PDF code. Now you can save this buffer to a file and print this file
with Mac OS X.
Could be there is a better way ...
Could be with GNU Emacs 23 comes a way to choose another file encoding
than ISO Latin-1.
--
Greetings
Pete
When confronted with actual numbers, a mathematician is at a loss.
(Steffen Hokland)
Next Message by Date:
click to view message preview
Re: gnuclient and Carbon Emacs?
On 23 May 2005, at 18:05, Peter Dyballa wrote:
And yes, it looks as if it has to fail! It looks as if the gnu*
Elisp code only knows two environments: one with windows, X11, and
another one without any windows, tty. Carbon Emacsen fill the
symbol window-system with ``mac´´, so they can't work with gnuclient.
Uh, ok, thanks. My error messages where more cryptic that most of
yours, I got the "Error during redisplay" one that didn't tell me
anything..
emacsclient works. But beware of Apple's /usr/bin/emacsclient!
You'll have to use your own /Applications/AquaMacs.app/Contents/
MacOS/bin/emacsclient.
Hey that's a good tip, it works indeed! Thanks!
I don't suppose I can use an emacsclient on a different machine to
make the Emacs on my Powerbook find a file, can I?
(emacsclient would have to transmit the file contents back and forth,
of course.)
Because that's what I would actually want to do, instead of having to
run emacs remotely via X11.
-- D
Previous Message by Thread:
click to view message preview
Re: Font choice, X-Faces with Aquamacs ?
Peter / Eric:
On 23 May 2005, at 20:23, Peter Dyballa wrote:
Doesn't work well for me - problems calculating the horizontal
extent of text. Clipped glyphs everywhere, if you try a simple C-x
C-f you'll see that the minibuffer can't cope with the width of
the glyphs. Looks a bit like a bug to me.
David,
you know that AquaMacs is changing the font all the time! Have you
checked that you really have in use any of those Bi
tstream Vera Sans Mono fontsets? Do have these fonts at all? They
don't come with Mac OS X ...
Without additional argument, create-fontset-from-fontset-spec will
throw an error if the font is not present. It will not add the font
to the list.
Also, Aquamacs only changes the font when the major mode is changed
or the buffer is switched.
When you bring up the font menu (Options / Set Font...), you will
only see fonts that are actually installed. The above font is
installed, as in turns up in Font Book and also here:
Click <mouse-2> on a completion to select it.
Possible completions are:
-apple-bitstream vera sans mono bold oblique-bold-i-normal--0-0-75-75-
m-0-mac-roman
-apple-bitstream vera sans mono bold oblique-bold-r-normal--0-0-75-75-
m-0-mac-roman
-apple-bitstream vera sans mono bold oblique-medium-i-
normal--0-0-75-75-m-0-mac-roman
-apple-bitstream vera sans mono bold oblique-medium-r-
normal--0-0-75-75-m-0-mac-roman
-apple-bitstream vera sans mono bold-bold-i-normal--0-0-75-75-m-0-mac-
roman
-apple-bitstream vera sans mono bold-bold-r-normal--0-0-75-75-m-0-mac-
roman
-apple-bitstream vera sans mono bold-medium-i-normal--0-0-75-75-m-0-
mac-roman
-apple-bitstream vera sans mono bold-medium-r-normal--0-0-75-75-m-0-
mac-roman
-apple-bitstream vera sans mono oblique-bold-i-normal--0-0-75-75-m-0-
mac-roman
-apple-bitstream vera sans mono oblique-bold-r-normal--0-0-75-75-m-0-
mac-roman
-apple-bitstream vera sans mono oblique-medium-i-normal--0-0-75-75-
m-0-mac-roman
-apple-bitstream vera sans mono oblique-medium-r-normal--0-0-75-75-
m-0-mac-roman
So the 11pt version you sent gets clipped badly, and I'm also not
very sure if it is actually displayed in 11pt - I think it's
something smaller. Again, it's a problem with the width calculation.
I type in a line in the buffer, and when I press return, the line is
redisplayed and it gets spaced differently - it's actually wider.
The definition below - defining with -120- instead of -110- actually
works much better for me and doesn't show any bad behavior. Why that
is the case, I have no idea. Maybe you have 11pt versions of the font
installed, and in my case it's rescaling the font. (My conjecture!)
In Aquamacs, this is nicely rendered - no trouble with it. Eric,
check it out - I suspect things will be smooth with this version.
Cheers
Dave
-----
(create-fontset-from-fontset-spec
"-*-bitstream vera sans mono-medium-r-*-*-0-*-*-*-*-*-
fontset-12pt_vera_sans_mono,
latin-iso8859-1:-*-bitstream vera sans mono-medium-r-
normal--*-*-75-75-m-120-mac-roman,
latin-iso8859-2:-*-bitstream vera sans mono-medium-r-
normal--*-*-75-75-m-120-mac-roman,
latin-iso8859-3:-*-bitstream vera sans mono-medium-r-
normal--*-*-75-75-m-120-mac-roman,
latin-iso8859-4:-*-bitstream vera sans mono-medium-r-
normal--*-*-75-75-m-120-mac-roman,
cyrillic-iso8859-5:-*-bitstream vera sans mono-medium-r-
normal--*-*-75-75-m-120-mac-roman,
arabic-iso8859-6:-*-bitstream vera sans mono-medium-r-
normal--*-*-75-75-m-120-mac-roman,
greek-iso8859-7:-*-bitstream vera sans mono-medium-r-
normal--*-*-75-75-m-120-mac-roman,
hebrew-iso8859-8:-*-bitstream vera sans mono-medium-r-
normal--*-*-75-75-m-120-mac-roman,
latin-iso8859-9:-*-bitstream vera sans mono-medium-r-
normal--*-*-75-75-m-120-mac-roman,
latin-iso8859-11:-*-bitstream vera sans mono-medium-r-
normal--*-*-75-75-m-120-mac-roman,
latin-iso8859-13:-*-bitstream vera sans mono-medium-r-
normal--*-*-75-75-m-120-mac-roman,
latin-iso8859-14:-*-bitstream vera sans mono-medium-r-
normal--*-*-75-75-m-120-mac-roman,
latin-iso8859-15:-*-bitstream vera sans mono-medium-r-
normal--*-*-75-75-m-120-mac-roman,
latin-iso8859-16:-*-bitstream vera sans mono-medium-r-
normal--*-*-75-75-m-120-mac-roman,
mac-roman-lower:-*-bitstream vera sans mono-medium-r-
normal--*-*-75-75-m-120-mac-roman,
mac-roman-upper:-*-bitstream vera sans mono-medium-r-
normal--*-*-75-75-m-120-mac-roman,
mule-unicode-0100-24ff:-*-bitstream vera sans mono-medium-r-
normal--*-*-75-75-m-120-mac-roman,
mule-unicode-2500-33ff:-*-bitstream vera sans mono-medium-r-
normal--*-*-75-75-m-120-mac-roman,
mule-unicode-e000-ffff:-*-bitstream vera sans mono-medium-r-
normal--*-*-75-75-m-120-mac-roman,
iso10646-1:-*-bitstream vera sans mono-medium-r-
normal--*-*-75-75-m-120-mac-roman,
ascii:-*-bitstream vera sans mono-medium-r-
normal--*-*-75-75-m-120-mac-roman" )
Next Message by Thread:
click to view message preview
printing in emacs cvs
Hi
I'd like to print accented characters with emacs cvs on osx
I can see the accented chars nicely on screen ... but when printing I got weird
characters :-(
Also I'm not able to use 'postscript print buffer' ...
Thanks for help
Erik
|
|