all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* antialiased fonts
@ 2005-05-24 10:41 Rob Wilco
  2005-05-24 13:55 ` Peter Dyballa
  2005-05-24 14:16 ` Jason Rumney
  0 siblings, 2 replies; 12+ messages in thread
From: Rob Wilco @ 2005-05-24 10:41 UTC (permalink / raw)


Hello,

My Debian and Ubuntu boxes do not display the default antialiased Bitstream font within emacs. I am not sure but I think my mzndrake box used to do that.

I have put those lines in my .emacs

(defvar veramono "-bitstream-bitstream vera sans mono-*-*-*-*-*-*-*-*-*-*-*-*")
(add-to-list 'default-frame-alist (cons 'font veramono))

The font does change but it is not antialiased as is my mail client and my gnome-terminal.

I have googled the matter and it appears that emacs cannot display antialiased font.


Questions :

Is it true?

I don't get it, why gnome-terminal can do it and emacs can't?

Who antialiases font?

What does it takes to make a gtk-aware emacs à la gvim?

What process are involved xfs, defoma, Xorg/XFree86?

Any explanation, link, google keyword will be appreciated.

Good day.



PS : what are the goals of this ng compared to the one called comp.emacs ?

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

* Re: antialiased fonts
  2005-05-24 10:41 antialiased fonts Rob Wilco
@ 2005-05-24 13:55 ` Peter Dyballa
  2005-05-24 14:16 ` Jason Rumney
  1 sibling, 0 replies; 12+ messages in thread
From: Peter Dyballa @ 2005-05-24 13:55 UTC (permalink / raw)
  Cc: Emacs help


Am 24.05.2005 um 12:41 schrieb Rob Wilco:

> Questions :
>
> Is it true?
>
> I don't get it, why gnome-terminal can do it and emacs can't?

GNOME and GTK have a mechanism that reads a configuration file that  
names all fonts directories to be used. Then, when a GTK client is  
launched, another GTK mechanism checks whether any of these fonts has  
changed. If a change has happened, GTK spends the next few minutes to  
create cache files, fonts.cache-1 and .fonts.cache-1 in your home  
directory.

GNU Emacs relies on your X server. If it's font path is incorrect the X  
server won't be able to serve the same fonts as GTK can do. You can  
check the X server's setting with 'xset -q'. If you changes needed you  
can do them in your .xinitrc file, or what ever launches X for you at  
login. The syntax is simple:

	xset fp+  
/sw/share/ghostscript/fonts/,/sw/lib/X11/fonts/applettf/,/sw/lib/X11/ 
fonts/msttf/,/sw/lib/X11/fonts/efont-unicode/,/sw/lib/X11/fonts/intl/ 
TrueType/,/sw/lib/X11/fonts/intl/Type1/,/sw/lib/X11/fonts/intl/,/usr/ 
X11R6/lib/X11/fonts/bidi/,/usr/X11R6/lib/X11/fonts/Indian/,/sw/lib/X11/ 
fonts/efont-unicode/
	#
	xset fp rehash

>
> Who antialiases font?

The X server.

>
> What does it takes to make a gtk-aware emacs à la gvim?

Get it from CVS, configure it --with-gtk, compile and install it  
yourself. (Check always ./configure --help!)

>
> What process are involved xfs, defoma, Xorg/XFree86?

I think the development packages. defoma is a bit complicated to use,  
xfs is useful when you have one server that has all your fonts that its  
clients would like to use. This goes:

	xset fp+ inet/127.0.0.1:7101

In /usr/X11R6/bin you'll find some *-config executables. /etc/X11 will  
have configuration files.

--
Greetings

   Pete

UNIX is user friendly, it's just picky about who its friends are.

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

* Re: antialiased fonts
  2005-05-24 10:41 antialiased fonts Rob Wilco
  2005-05-24 13:55 ` Peter Dyballa
@ 2005-05-24 14:16 ` Jason Rumney
  2005-05-24 17:17   ` Rob Wilco
  2005-05-25  2:43   ` sangu
  1 sibling, 2 replies; 12+ messages in thread
From: Jason Rumney @ 2005-05-24 14:16 UTC (permalink / raw)


Rob Wilco <rob.wilco@gmail.com> writes:

> I have googled the matter and it appears that emacs cannot display antialiased font.
>
> Questions :
>
> Is it true?

Yes.

> I don't get it, why gnome-terminal can do it and emacs can't?

gnome-terminal was written to use GTK for rendering, which in turn
uses the X11 extension APIs for directly drawing antialiased fonts.
Emacs was written to use the plain X11 text drawing API, which does
not support antialiasing.

> Who antialiases font?

The X11 extension API (the name of which I cannot recall).

> What does it takes to make a gtk-aware emacs à la gvim?

There are various degrees of GTK awareness. The current CVS, which
will someday be Emacs 22 has GTK widgets (menus, scrollbars etc), but
does not yet use GTK for drawing the text, since that is a much bigger
job requiring a complete fork of the display engine.

> PS : what are the goals of this ng compared to the one called comp.emacs ?

This newsgroup is for discussing topics specific to GNU
Emacs. comp.emacs.xemacs is the equivalent group for
XEmacs. comp.emacs is for topics that are common to both.

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

* Re: antialiased fonts
  2005-05-24 14:16 ` Jason Rumney
@ 2005-05-24 17:17   ` Rob Wilco
  2005-05-24 21:49     ` Peter Dyballa
       [not found]     ` <mailman.1624.1116971563.25862.help-gnu-emacs@gnu.org>
  2005-05-25  2:43   ` sangu
  1 sibling, 2 replies; 12+ messages in thread
From: Rob Wilco @ 2005-05-24 17:17 UTC (permalink / raw)


Has anyone ever seen antialiased font with emacs?  (correlary question : Was I drunk when I saw that with a Mandrake distrib?)


>>I don't get it, why gnome-terminal can do it and emacs can't?
> 
> 
> gnome-terminal was written to use GTK for rendering, which in turn
> uses the X11 extension APIs for directly drawing antialiased fonts.
> Emacs was written to use the plain X11 text drawing API, which does
> not support antialiasing.

I googled a bit more, are you talking about xft for the X11 API?

 >>What does it takes to make a gtk-aware emacs à la gvim?
 > There are various degrees of GTK awareness. The current CVS, which
 > will someday be Emacs 22 has GTK widgets (menus, scrollbars etc), but
 > does not yet use GTK for drawing the text, since that is a much bigger
 > job requiring a complete fork of the display engine.


 >> What does it takes to make a gtk-aware emacs à la gvim?
 >Get it from CVS, configure it --with-gtk, compile and install it  yourself.

If I follow the precedent post, my emacs would then be gtk-aware but still I would have unaliased fonts. Is that it?

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

* Re: antialiased fonts
  2005-05-24 17:17   ` Rob Wilco
@ 2005-05-24 21:49     ` Peter Dyballa
       [not found]     ` <mailman.1624.1116971563.25862.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 12+ messages in thread
From: Peter Dyballa @ 2005-05-24 21:49 UTC (permalink / raw)
  Cc: help-gnu-emacs


Am 24.05.2005 um 19:17 schrieb Rob Wilco:

> Has anyone ever seen antialiased font with emacs?

Me. Many times.

First I use TrueType fonts. They get rendered and anti-aliased by the X 
server.

Second Carbon Emacs for Mac OS X uses a Quickdraw based anti-aliasing 
for scalable fonts too.


To see the difference either use in one frame a vector based font or 
fontset (TrueType or PostScript, or OpenType if your X server supports 
this) and use in another frame for example bitmapped fonts that GNU 
supplies since ages (-etl-fixed-*, too -schumacher-clean-*, 
-mutt-clearlyu-*). Or invoke C-h H and then check with C-u C-x = the 
glyphs.


There is another approach too possible: first invoke xlsfonts and list 
all monospaced fonts with iso10646-1 encoding, as an example, size: 
12pt or 14pt or 17pt. Among them you'll probably see patterns like this 
one: -0-0-. This pattern tells you that this font is built from a 
scalable (vector based) font, i.e. TrueType, PostScript, OpenType. The 
other fonts are bitmap based, come from bdf or pcf files. You can have 
Courier or Lucida Sans Typewriter in both formats -- and find whether 
you have anti-aliasing on your platform.

I have with my X server (XFree86 version: 4.3.0). And I do prefer the 
bitmapped fonts! They look sharp and crisp, the glyphs are perfectly 
exact positioned.

--
Greetings

   Pete

If my theory of relativity is proven successful, Germany will claim me
as a German, and France will declare that I am a citizen of the world.
Should my theory prove untrue, France will say that I am a German, and
Germany will declare that I am a Jew.          --Albert Einstein, 1929

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

* Re: antialiased fonts
  2005-05-24 14:16 ` Jason Rumney
  2005-05-24 17:17   ` Rob Wilco
@ 2005-05-25  2:43   ` sangu
  1 sibling, 0 replies; 12+ messages in thread
From: sangu @ 2005-05-25  2:43 UTC (permalink / raw)
  Cc: help-gnu-emacs

2005-05-24 (화), 15:16 +0100, jasonr@f2s.com 쓰시길:
> Rob Wilco <rob.wilco@gmail.com> writes:
> 
> > I have googled the matter and it appears that emacs cannot display antialiased font.
> >
> > Questions :
> >
> > Is it true?
> 
> Yes.
or NO.
http://savannah.gnu.org/cgi-bin/viewcvs/emacs/emacs/src/?only_with_tag=XFT_JHD_BRANCH

Using XFT_JHD_BRANCH in current cvs, emacs can display antialias font.
This branch is unstable (maybe).

see also  :
http://lists.gnu.org/archive/html/emacs-devel/2005-03/msg00475.html

----
Using antialias font emacs screenshot
http://img2.uploadimages.net/923373emacs-xft.png

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

* Re: antialiased fonts
       [not found]     ` <mailman.1624.1116971563.25862.help-gnu-emacs@gnu.org>
@ 2005-05-25 15:49       ` Stefan Monnier
  2005-05-26 21:34         ` Peter Dyballa
       [not found]         ` <mailman.1977.1117143970.25862.help-gnu-emacs@gnu.org>
  2005-05-25 17:05       ` Rob Wilco
  1 sibling, 2 replies; 12+ messages in thread
From: Stefan Monnier @ 2005-05-25 15:49 UTC (permalink / raw)


>> Has anyone ever seen antialiased font with Emacs?
> Me. Many times.
> First I use TrueType fonts. They get rendered and anti-aliased by the
> X server.

No, the X server does not magically anti-alias TrueType fonts.
If you've seen Emacs anti-aliased on X11, I can only think of the
following reason:
- you ran Emacs inside an anti-aliased text-terminal-emulator.
- you tried one of the patches that add support for xft, none of which is
  in any kind of stable state, AFAIK (tho I haven't tried to xft branch in
  the CVS repository recently).


        Stefan

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

* Re: antialiased fonts
       [not found]     ` <mailman.1624.1116971563.25862.help-gnu-emacs@gnu.org>
  2005-05-25 15:49       ` Stefan Monnier
@ 2005-05-25 17:05       ` Rob Wilco
  2005-05-25 20:13         ` Peter Dyballa
  1 sibling, 1 reply; 12+ messages in thread
From: Rob Wilco @ 2005-05-25 17:05 UTC (permalink / raw)


 > > Has anyone ever seen antialiased font with emacs?
 > Me. Many times.
Great news, I have hope.

I have read the thorougly read this thread and I have many questions 
(and still no antialiased fonts !).



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.

  * How to be sure a font is TrueType or bitmap? Can xfontsel of xslfont 
tell if a font is TrueType or Bitmap or else?



I assume that if Gnome displays antialiased fonts then my X supports it. 
(because gtk uses XFT).

  * Am I right with that?


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))

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 ?




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?



> 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?

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

* Re: antialiased fonts
  2005-05-25 17:05       ` Rob Wilco
@ 2005-05-25 20:13         ` Peter Dyballa
  0 siblings, 0 replies; 12+ messages in thread
From: Peter Dyballa @ 2005-05-25 20:13 UTC (permalink / raw)
  Cc: help-gnu-emacs


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]

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

* Re: antialiased fonts
  2005-05-25 15:49       ` Stefan Monnier
@ 2005-05-26 21:34         ` Peter Dyballa
  2005-05-26 21:51           ` Stefan Monnier
       [not found]         ` <mailman.1977.1117143970.25862.help-gnu-emacs@gnu.org>
  1 sibling, 1 reply; 12+ messages in thread
From: Peter Dyballa @ 2005-05-26 21:34 UTC (permalink / raw)
  Cc: help-gnu-emacs


Am 25.05.2005 um 17:49 schrieb Stefan Monnier:

>>> Has anyone ever seen antialiased font with Emacs?
>> Me. Many times.
>> First I use TrueType fonts. They get rendered and anti-aliased by the
>> X server.
>
> No, the X server does not magically anti-alias TrueType fonts.
> If you've seen Emacs anti-aliased on X11, I can only think of the
> following reason:
> - you ran Emacs inside an anti-aliased text-terminal-emulator.
> - you tried one of the patches that add support for xft, none of which 
> is
>   in any kind of stable state, AFAIK (tho I haven't tried to xft 
> branch in
>   the CVS repository recently).

OK, I confess: with X11 I do *not* see antialiased fonts! My xterm is 
GTK aware (whenever I changed my number of fonts it took minutes until 
it showed up!). Using the font or on that font based fontset I actually 
can see differences between both. In xterm I can see that some pixels 
are not completely dark, in Emacs this never happens, no matter how 
steep or how round a line is, all pixels are really black.

So there is really only one stable release of GNU Emacs that can 
anti-alias fonts: Carbon Emacs 22.0.50 from CVS for Mac OS X.

--
Greetings

   Pete

If you're not confused, you're not paying attention

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

* Re: antialiased fonts
  2005-05-26 21:34         ` Peter Dyballa
@ 2005-05-26 21:51           ` Stefan Monnier
  0 siblings, 0 replies; 12+ messages in thread
From: Stefan Monnier @ 2005-05-26 21:51 UTC (permalink / raw)
  Cc: help-gnu-emacs

> So there is really only one stable release of GNU Emacs that can anti-alias
> fonts: Carbon Emacs 22.0.50 from CVS for Mac OS X.

No, there's also:
- Emacs under an anti-aliased tty
- and of course NTEmacs


-- Stefan

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

* Re: antialiased fonts
       [not found]         ` <mailman.1977.1117143970.25862.help-gnu-emacs@gnu.org>
@ 2005-05-26 21:57           ` David Kastrup
  0 siblings, 0 replies; 12+ messages in thread
From: David Kastrup @ 2005-05-26 21:57 UTC (permalink / raw)


Peter Dyballa <Peter_Dyballa@Web.DE> writes:

> So there is really only one stable release of GNU Emacs that can
> anti-alias fonts: Carbon Emacs 22.0.50 from CVS for Mac OS X.

That is like saying that there is only one string instrument with
valves, and that is the trumpet.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

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

end of thread, other threads:[~2005-05-26 21:57 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-24 10:41 antialiased fonts Rob Wilco
2005-05-24 13:55 ` Peter Dyballa
2005-05-24 14:16 ` Jason Rumney
2005-05-24 17:17   ` Rob Wilco
2005-05-24 21:49     ` Peter Dyballa
     [not found]     ` <mailman.1624.1116971563.25862.help-gnu-emacs@gnu.org>
2005-05-25 15:49       ` Stefan Monnier
2005-05-26 21:34         ` Peter Dyballa
2005-05-26 21:51           ` Stefan Monnier
     [not found]         ` <mailman.1977.1117143970.25862.help-gnu-emacs@gnu.org>
2005-05-26 21:57           ` David Kastrup
2005-05-25 17:05       ` Rob Wilco
2005-05-25 20:13         ` Peter Dyballa
2005-05-25  2:43   ` sangu

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.