From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: antialiased fonts Date: Wed, 25 May 2005 22:13:10 +0200 Message-ID: <488cc0b98f72dc3c29b9468575576c03@Web.DE> References: <429304df$0$11679$8fcfb975@news.wanadoo.fr> <429361c1$0$25044$8fcfb975@news.wanadoo.fr> <4294b04c$0$809$8fcfb975@news.wanadoo.fr> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1117052127 12787 80.91.229.2 (25 May 2005 20:15:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 25 May 2005 20:15:27 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 25 22:15:22 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Db2GG-0001MS-Nb for geh-help-gnu-emacs@m.gmane.org; Wed, 25 May 2005 22:13:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Db2KA-0002YX-DS for geh-help-gnu-emacs@m.gmane.org; Wed, 25 May 2005 16:17:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Db2JN-0002HU-QE for help-gnu-emacs@gnu.org; Wed, 25 May 2005 16:17:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Db2JF-0002Cb-A1 for help-gnu-emacs@gnu.org; Wed, 25 May 2005 16:16:58 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Db2JF-0002C3-4y for help-gnu-emacs@gnu.org; Wed, 25 May 2005 16:16:57 -0400 Original-Received: from [217.72.192.226] (helo=smtp08.web.de) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1Db2GA-0002qS-O6 for help-gnu-emacs@gnu.org; Wed, 25 May 2005 16:13:47 -0400 Original-Received: from [84.245.189.230] (helo=[192.168.1.2]) by smtp08.web.de with asmtp (TLSv1:RC4-SHA:128) (WEB.DE 4.105 #291) id 1Db2Ff-0004lK-00; Wed, 25 May 2005 22:13:15 +0200 In-Reply-To: <4294b04c$0$809$8fcfb975@news.wanadoo.fr> Original-To: Rob Wilco X-Mailer: Apple Mail (2.622) X-Sender: Peter_Dyballa@web.de X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:26988 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:26988 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]