>>>> "Meino" == Meino Christian Cramer
<mccramer(a)s.netic.de> writes:
Meino> From: "Stephen J. Turnbull" <stephen(a)xemacs.org>
Meino> Subject: Re: Italic-Fonts does not change
Meino> Date: 14 Nov 2001 00:16:43 +0900
Meino> Message-ID: <87r8r2wvj8.fsf(a)tleepslib.sk.tsukuba.ac.jp>
stephen>
stephen>
>>>> "Meino" == Meino
Christian Cramer <mccramer(a)s.netic.de> writes:
stephen>
stephen> Meino> Regardless, what I am setting with "set-face-font",
XEmacs
stephen> Meino> insists of using the unreadable
stephen> Meino>
"-*-courier-medium-i-*-*-*-120-*-*-*-*-iso8859-*"-font
stephen>
stephen> Show us exactly what call you are using to set the face to FONT. Also
stephen> show us what (list-fonts FONT) tells you.
Meino> I did the following:
Meino> I used customize-face (all = yes) to seacrh for the
Meino> face used by AUC-TeX for its italic-face display.
Meino> I gave the faces in question a blue background and typed
Meino> some characters in AUC-TeX to proof whether I found the
Meino> one. After some tests, it was clear, that AUC-TeX uses
Meino> the "italic" face to display the characters.
Meino> Changing the font for the "italic" face via customize failed
Meino> (the begin of the story).
Meino> You gave me the hint, to use set-face-font directly to
Meino> set the font for the italic face.
Meino> I started 'xlsfont -f xlsfonts -fn
"-*-*-*-i-*-*-14-*-*-*-*-*-*-*"'
Meino> to giove me a list of fonts of the disired slant and size.
Meino> I tried xfontsel and gimp to acces those fonts to be sure,
Meino> that they are useable...they were.
Meino> I typed
Meino> M-x set-face-font <RETURN> italic <RETURN>
-adobe-courier-bold-i-normal--14-135-75-75-m-0-iso8859-1"" <RETURN>
On W2K I use
M-x set-face-font RET italic RET Courier New:Italic:10::Western RET
-adobe-courier-bold-i-normal--14-135-75-75-m-0-iso8859-1""
is definitely wrong.
Use one of the fonts listed by list-fonts.
Meino> after switching to tex-mode (which activates AUC-TeX).
Meino> That does not work for me...no change was visisble.
Meino> I tried
Meino> M-x set-face-font <RETURN> italic <RETURN>
-adobe-courier-bold-i-normal--14-135-75-75-m-0-iso8859-1 <RETURN>
Meino> instead.
Meino> No success, too. But XEmacs does not display any errors or something like
that.
Meino> It seems that "list-fonts" is a little be tricky...and I am no
Lisp expert.
Meino> As I understand, list-fonts returns a list of font names.
Meino> I exxecuted the command
Meino> (list-fonts "-*-*-*-i-*-*-14-*-*-*-*-*-*-*")
Meino> and it prints me dozens of fonts into the minibuffer...and after a second
or two
Meino> the list vanishes....
Meino> I have no clue how to copy the output into a mail (which
Meino> means more exactly:...how to turn a lisp list into a "real
Meino> string" )...would you give me a hint, please :-)
You can be helped. Use
View->Show Message Log
to find messages past.
Execute
C-u (universal-argument)
C-x C-e (eval-last-sexp)
that's the sequence
C-u C-x C-e RET
(as M-x view-lossage RET reports it) after the list-fonts form in a
mail or *scratch* buffer.
Here is what I get on W2K (the result seems a bit funny but that may
be a native XEmacs on MS Windows problem):
(list-fonts "Courier New:Italic:10::Western")
("Courier New::::Western" "Courier New::::Western" "Courier
New::::Western" "Courier New::::Western")
Use one of the font strings you get, without the quotes, with set-face-font.
Hope this helps,
Adrian
Meino> Same goes for
Meino> (list-fonts
"-adobe-courier-bold-i-normal--14-135-75-75-m-0-iso8859-1" )....
Meino> Thank you!
Meino> Meino
stephen>
stephen>
stephen> --
stephen> Institute of Policy and Planning Sciences
http://turnbull.sk.tsukuba.ac.jp
--
Adrian Aichner
mailto:adrianï¼ xemacs.org
http://www.xemacs.org/