[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: antialiased fonts
From: |
Peter Dyballa |
Subject: |
Re: antialiased fonts |
Date: |
Wed, 25 May 2005 22:13:10 +0200 |
Am 25.05.2005 um 19:05 schrieb Rob Wilco:
I wish to use Bitstream Vera Sans Mono for the antialised font. I am
pretty sure it is an TrueType font that can be antialiased because
every file related to "bitstream" is in a ttf folder.
That's not enough reason. Look at the file's extension, could be some
part of your system (the file command, Nautilus, etc.) can determine
more exactly the nature of these files. There too is fontforge, once
knows as pfaedit. But Vera Sans comes as TrueType!
* How to be sure a font is TrueType or bitmap? Can xfontsel of
xslfont tell if a font is TrueType or Bitmap or else?
No. They just report what the X server (or X font server) has told
them. To determine the nature and the contents of a font file you need
fontforge, once knows as pfaedit.
I assume that if Gnome displays antialiased fonts then my X supports
it. (because gtk uses XFT).
* Am I right with that?
Yes, your X server has an extension to render the scalable fonts as
anti-aliased ones. Now the question is whether all its clients can use
this ability ...
With your advice, I have set the following font in .emacs (my .emacs
is minimal, it only contains the following two lines):
(defvar veramono "-bitstream-bitstream vera sans
mono-medium-r-normal--0-0-0-0-m-0-iso10646-1")
(add-to-list 'default-frame-alist (cons 'font veramono))
This definition is a bit better (but check first, whether you have the
other iso8859 encodings too):
(create-fontset-from-fontset-spec "-*-bitstream vera sans
mono-medium-r-*-*-10-*-*-*-*-*-fontset-10pt_vera_sans_mono" t 'noerror)
(set-fontset-font "fontset-10pt_vera_sans_mono" 'latin-iso8859-1
'("bitstream vera sans mono" . "iso8859-1"))
(set-fontset-font "fontset-10pt_vera_sans_mono" 'latin-iso8859-2
'("bitstream vera sans mono" . "iso10646-1"))
(set-fontset-font "fontset-10pt_vera_sans_mono" 'latin-iso8859-3
'("bitstream vera sans mono" . "iso10646-1"))
(set-fontset-font "fontset-10pt_vera_sans_mono" 'latin-iso8859-4
'("bitstream vera sans mono" . "iso10646-1"))
(set-fontset-font "fontset-10pt_vera_sans_mono" 'latin-iso8859-9
'("bitstream vera sans mono" . "iso8859-9"))
(set-fontset-font "fontset-10pt_vera_sans_mono"
'latin-iso8859-15 '("bitstream vera sans mono" . "iso8859-15"))
(set-fontset-font "fontset-10pt_vera_sans_mono"
'mule-unicode-0100-24ff '("bitstream vera sans mono" . "iso10646-1"))
(set-fontset-font "fontset-10pt_vera_sans_mono"
'mule-unicode-2500-33ff '("bitstream vera sans mono" . "iso10646-1"))
(set-fontset-font "fontset-10pt_vera_sans_mono"
'mule-unicode-e000-ffff '("bitstream vera sans mono" . "iso10646-1"))
You too could try to extend the list of fonts:
(setq x-fixed-font-alist
'("X11 Font Menu"
("Lucida Sans Typewriter 75 DPI"
;; For these, we specify the point height and the DPIs.
( "8"
"-*-lucidatypewriter-medium-r-normal-*-80-75-75-m-*-iso10646-1")
("10"
"-*-lucidatypewriter-medium-r-normal-*-100-75-75-m-*-iso10646-1")
("12"
"-*-lucidatypewriter-medium-r-normal-*-120-75-75-m-*-iso10646-1")
("14"
"-*-lucidatypewriter-medium-r-normal-*-140-75-75-m-*-iso10646-1")
("18"
"-*-lucidatypewriter-medium-r-normal-*-180-75-75-m-*-iso10646-1")
("19"
"-*-lucidatypewriter-medium-r-normal-*-190-75-75-m-*-iso10646-1")
("24"
"-*-lucidatypewriter-medium-r-normal-*-240-75-75-m-*-iso10646-1")
( "8 bold"
"-*-lucidatypewriter-bold-r-normal-*-80-75-75-m-*-iso10646-1")
("10 bold"
"-*-lucidatypewriter-bold-r-normal-*-100-75-75-m-*-iso10646-1")
("12 bold"
"-*-lucidatypewriter-bold-r-normal-*-120-75-75-m-*-iso10646-1")
("14 bold"
"-*-lucidatypewriter-bold-r-normal-*-140-75-75-m-*-iso10646-1")
("18 bold"
"-*-lucidatypewriter-bold-r-normal-*-180-75-75-m-*-iso10646-1")
("19 bold"
"-*-lucidatypewriter-bold-r-normal-*-190-75-75-m-*-iso10646-1")
("24 bold"
"-*-lucidatypewriter-bold-r-normal-*-240-75-75-m-*-iso10646-1")
( "8 slant"
"-*-lucidatypewriter-medium-o-normal-*-80-75-75-m-*-iso10646-1")
("10 slant"
"-*-lucidatypewriter-medium-o-normal-*-100-75-75-m-*-iso10646-1")
("12 slant"
"-*-lucidatypewriter-medium-o-normal-*-120-75-75-m-*-iso10646-1")
("14 slant"
"-*-lucidatypewriter-medium-o-normal-*-140-75-75-m-*-iso10646-1")
("18 slant"
"-*-lucidatypewriter-medium-o-normal-*-180-75-75-m-*-iso10646-1")
("19 slant"
"-*-lucidatypewriter-medium-o-normal-*-190-75-75-m-*-iso10646-1")
("24 slant"
"-*-lucidatypewriter-medium-o-normal-*-240-75-75-m-*-iso10646-1")
( "8 bold slant"
"-*-lucidatypewriter-bold-o-normal-*-80-75-75-m-*-iso10646-1")
("10 bold slant"
"-*-lucidatypewriter-bold-o-normal-*-100-75-75-m-*-iso10646-1")
("12 bold slant"
"-*-lucidatypewriter-bold-o-normal-*-120-75-75-m-*-iso10646-1")
("14 bold slant"
"-*-lucidatypewriter-bold-o-normal-*-140-75-75-m-*-iso10646-1")
("18 bold slant"
"-*-lucidatypewriter-bold-o-normal-*-180-75-75-m-*-iso10646-1")
("19 bold slant"
"-*-lucidatypewriter-bold-o-normal-*-190-75-75-m-*-iso10646-1")
("24 bold slant"
"-*-lucidatypewriter-bold-o-normal-*-240-75-75-m-*-iso10646-1")
)
("Lucida Sans Typewriter 100 DPI"
;; For these, we specify the point height and the DPIs.
( "8"
"-*-lucidatypewriter-medium-r-normal-*-80-100-100-m-*-iso10646-1")
("10"
"-*-lucidatypewriter-medium-r-normal-*-100-100-100-m-*-iso10646-1")
("12"
"-*-lucidatypewriter-medium-r-normal-*-120-100-100-m-*-iso10646-1")
("14"
"-*-lucidatypewriter-medium-r-normal-*-140-100-100-m-*-iso10646-1")
("18"
"-*-lucidatypewriter-medium-r-normal-*-180-100-100-m-*-iso10646-1")
("19"
"-*-lucidatypewriter-medium-r-normal-*-190-100-100-m-*-iso10646-1")
("24"
"-*-lucidatypewriter-medium-r-normal-*-240-100-100-m-*-iso10646-1")
( "8 bold"
"-*-lucidatypewriter-bold-r-normal-*-80-100-100-m-*-iso10646-1")
("10 bold"
"-*-lucidatypewriter-bold-r-normal-*-100-100-100-m-*-iso10646-1")
("12 bold"
"-*-lucidatypewriter-bold-r-normal-*-120-100-100-m-*-iso10646-1")
("14 bold"
"-*-lucidatypewriter-bold-r-normal-*-140-100-100-m-*-iso10646-1")
("18 bold"
"-*-lucidatypewriter-bold-r-normal-*-180-100-100-m-*-iso10646-1")
("19 bold"
"-*-lucidatypewriter-bold-r-normal-*-190-100-100-m-*-iso10646-1")
("24 bold"
"-*-lucidatypewriter-bold-r-normal-*-240-100-100-m-*-iso10646-1")
( "8 slant"
"-*-lucidatypewriter-medium-o-normal-*-80-100-100-m-*-iso10646-1")
("10 slant"
"-*-lucidatypewriter-medium-o-normal-*-100-100-100-m-*-iso10646-1")
("12 slant"
"-*-lucidatypewriter-medium-o-normal-*-120-100-100-m-*-iso10646-1")
("14 slant"
"-*-lucidatypewriter-medium-o-normal-*-140-100-100-m-*-iso10646-1")
("18 slant"
"-*-lucidatypewriter-medium-o-normal-*-180-100-100-m-*-iso10646-1")
("19 slant"
"-*-lucidatypewriter-medium-o-normal-*-190-100-100-m-*-iso10646-1")
("24 slant"
"-*-lucidatypewriter-medium-o-normal-*-240-100-100-m-*-iso10646-1")
( "8 bold slant"
"-*-lucidatypewriter-bold-o-normal-*-80-100-100-m-*-iso10646-1")
("10 bold slant"
"-*-lucidatypewriter-bold-o-normal-*-100-100-100-m-*-iso10646-1")
("12 bold slant"
"-*-lucidatypewriter-bold-o-normal-*-120-100-100-m-*-iso10646-1")
("14 bold slant"
"-*-lucidatypewriter-bold-o-normal-*-140-100-100-m-*-iso10646-1")
("18 bold slant"
"-*-lucidatypewriter-bold-o-normal-*-180-100-100-m-*-iso10646-1")
("19 bold slant"
"-*-lucidatypewriter-bold-o-normal-*-190-100-100-m-*-iso10646-1")
("24 bold slant"
"-*-lucidatypewriter-bold-o-normal-*-240-100-100-m-*-iso10646-1")
)
("ISO 8859-15 medium"
("B&H LucidaSans Typewriter med" "-*-lucida sans
typewriter-medium-r-*--0-0-0-0-m-0-iso8859-15")
("B&H Luxi Mono med" "-*-luxi
mono-medium-r-*--0-0-0-0-m-0-iso8859-15")
("Bitstream Vera Sans Mono med" "-*-bitstream vera sans
mono-medium-r-*--0-0-0-0-m-0-iso8859-15")
("ProFont med"
"-misc-profontwindows-medium-r-*--0-0-0-0-m-0-iso8859-15")
("Monotype Andale Mono med" "-monotype-andale
mono-medium-r-*--0-0-0-0-m-0-iso8859-15")
("Monotype Courier New med" "-monotype-courier
new-medium-r-*--0-0-0-0-m-0-iso8859-15")
("urw++ Courier med"
"-urw-courier-medium-r-*--0-0-0-0-m-0-iso8859-15")
("urw++ Nimbus Mono l med" "-urw-nimbus mono
l-medium-r-*--0-0-0-0-m-0-iso8859-15")
)
("ISO 10646-1 medium"
("B&H LucidaSans Typewriter med" "-*-lucida sans
typewriter-medium-r-normal--0-0-0-0-m-0-iso10646-1")
("B&H Luxi Mono med" "-*-luxi
mono-medium-r-normal--0-0-0-0-m-0-iso10646-1")
("Bitstream Vera Sans Mono-med" "-*-bitstream vera sans
mono-medium-r-normal--0-0-0-0-m-0-iso10646-1")
("ProFont med"
"-misc-profontwindows-medium-r-normal--0-0-0-0-m-0-iso10646-1")
("Monotype Andale Mono med" "-monotype-andale
mono-medium-r-normal--0-0-0-0-m-0-iso10646-1")
("Monotype Courier New med" "-monotype-courier
new-medium-r-normal--0-0-0-0-m-0-iso10646-1")
)
("ISO 8859-15 bold"
("B&H LucidaSans Typewriter med" "-*-lucida sans
typewriter-bold-r-*--0-0-0-0-m-0-iso8859-15")
("B&H Luxi Mono med" "-*-luxi
mono-bold-r-*--0-0-0-0-m-0-iso8859-15")
("Bitstream Vera Sans Mono med" "-*-bitstream vera sans
mono-bold-r-*--0-0-0-0-m-0-iso8859-15")
("ProFont med"
"-misc-profontwindows-bold-r-*--0-0-0-0-m-0-iso8859-15")
("Monotype Andale Mono med" "-monotype-andale
mono-bold-r-*--0-0-0-0-m-0-iso8859-15")
("Monotype Courier New med" "-monotype-courier
new-bold-r-*--0-0-0-0-m-0-iso8859-15")
("urw++ Courier med"
"-urw-courier-bold-r-*--0-0-0-0-m-0-iso8859-15")
("urw++ Nimbus Mono l med" "-urw-nimbus mono
l-bold-r-*--0-0-0-0-m-0-iso8859-15")
)
("ISO 10646-1 bold"
("B&H LucidaSans Typewriter med" "-*-lucida sans
typewriter-bold-r-normal--0-0-0-0-m-0-iso10646-1")
("B&H Luxi Mono med" "-*-luxi
mono-bold-r-normal--0-0-0-0-m-0-iso10646-1")
("Bitstream Vera Sans Mono-med" "-*-bitstream vera sans
mono-bold-r-normal--0-0-0-0-m-0-iso10646-1")
("ProFont med"
"-misc-profontwindows-bold-r-normal--0-0-0-0-m-0-iso10646-1")
("Monotype Andale Mono med" "-monotype-andale
mono-bold-r-normal--0-0-0-0-m-0-iso10646-1")
("Monotype Courier New med" "-monotype-courier
new-bold-r-normal--0-0-0-0-m-0-iso10646-1")
)
))
(provide 'site-fonts-x11)
S-mouse-1 pops up a menu from which you can select fonts or fontsets.
And actually, the font looks like my default system font, except that
it is not antialiased (and ugly on a lcd screen).
* What did I miss ?
A more capable X server, one that serves anti-aliased fonts to non-GTK
clients too? A version of GNU Emacs from CVS? At least you could try
that. I do not use Linux, so I can't tell you more exactly what might
be wrong with your system ...
I tried "M-x apropos: fonts" but tons of entries and several are
functions unavailable on my system. (I tried M-x then "x-" and then
TAB but there only x-set-selection while "M-x apropos: fonts" says
there are lots of functions beginning with x-font-*)
* How can I change fonts on the fly with emacs?
M-x set-frame-font RET TAB TAB C-g, the return to the *completions*
buffer and save it, to have it safe and less volatile. Ahemm -- don't
try to expand the name of the file to save the list of completions in:
this will substitute the *completions* buffer with a completely
different contents!
Or invoke C-h H and then check with C-u C-x = the glyphs.
If I type C-h H C-u C-x =, then I do get "Hello" in several langage
and informations on the font used where the point is.
None of those are anti aliased.
* What do you mean by check the glyphs? What does it teaches me?
You can see from which font the glyphs are taken from. With this
knowledge you then can tell whether it's a scalable or a fixed bitmap
font.
--
Greetings
Pete
The most exciting phrase to hear in science, the one that heralds new
discoveries, is not "Eureka!" (I found it!) but "That's funny..."
[Isaac Asimov]
Re: antialiased fonts, sangu, 2005/05/24