From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: Getting emacs23 to use Bitstream Vera Sans Mono-8 font Date: Sun, 20 Jul 2008 17:44:01 +1000 Organization: Rapt Technologies Message-ID: <87hcal2e66.fsf@lion.rapttech.com.au> References: <4b75340e0807180959n6f27757bg4c6049d6c56f196e@mail.gmail.com> <87vdz1lnz7.fsf@edna.homeunix.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1216543450 7213 80.91.229.12 (20 Jul 2008 08:44:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Jul 2008 08:44:10 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 20 10:44:59 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KKUXK-0006Ah-NL for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Jul 2008 10:44:58 +0200 Original-Received: from localhost ([127.0.0.1]:33377 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KKUWR-0003W4-Hf for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Jul 2008 04:44:03 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!news.kjsl.com!news-xfer.nntp.sonic.net!news.astraweb.com!border2.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:hMLosDuqy9Mc3AQRmnQD6hmkBUU= Original-Lines: 75 Original-NNTP-Posting-Host: 7a622f7c.news.astraweb.com Original-X-Trace: DXC=_BI2:cnNJ]WaaSDeVe\e2]L?0kYOcDh@ZIGb]mONgOiZ[WjN]MSZ1iP8MIVZB_Q1`QKnD[HlRlehY Original-Xref: news.stanford.edu gnu.emacs.help:160397 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:55745 Archived-At: "Doctor Who" writes: > On 7/19/08, Joel J. Adamson wrote: >> "Doctor Who" writes: >> >>> I'm trying to get emacs23 to use Bitstream Vera Sans Mono-8 as the >>> font. When I try to invoke emacs like this: >>> >>> emacs --font "Bitstream Vera Sans Mono-8" >>> >>> I get the error: >>> >>> Font `Bitstream Vera Sans Mono-8' is not defined >> >> One way to do it: >> ,----~/.Xdefaults >> | >> | !Emacs >> | Emacs*font: -xos4-terminus-medium-*-normal-*-12-*-*-*-*-*-iso10646-1 >> | Emacs*cursorColor: magenta >> | Emacs*foreground: White >> | Emacs*background: Black >> | Emacs*borderwidth: 0 >> | Emacs*bitmapIcon: on >> | ! Lucid resources: >> | >> Emacs.pane.menubar.font: -adobe-helvetica-medium-r-*-*-14-*-*-*-*-*-iso10646-1 >> | Emacs*menu*fontSet: -adobe-helvetica-medium-r-*-*-14-*-*-*-*-*-iso10646-1 >> | Emacs.dialog*.font: >> -adobe-helvetica-medium-r-*-*-14-*-*-*-*-*-iso10646-1 >> | Emacs.dialog*.foreground: Black >> | Emacs.dialog*.background: Gray >> | Emacs.pane.menubar.foreground: Black >> | Emacs.pane.menubar.background: Gray >> `---- >> >> $ xrdb ~/.Xdefaults >> >> and open Emacs anew. >> >> Use xfontsel to find the name of the font that you want (where I have >> terminus above). >> >> Another way is to customize the default face and put in the name of the >> font under "Family." >> >> Joel > > > Thanks. A couple of questions: > > 1) If I use the example .Xdefaults like you listed above, are the > pipe symbols (|} included at the beginning of several lines to be > included as well? > > 2) Apparently I'm not familiar with the xfonsel command enough to get > the desired output I want. I'm trying to use Bitstream Vera Sans-8 as > the default font for the emacs editor window. Running 'xfontsel > -pattern Bitstream' does not give any results (that I can see). > The correct command is xfontsel. Start it up and select Bitstream from the family and then work forward. However..... I'm not sure xfontsel is still a good way to select fonts now we have support for freetype, xft etc. At one time, xfontsel was unable to deal with things like true type fonts and antialiased fonts etc. Try using the fc-* family of font manipulation commands, such as fc-match and fc-list. See the man pages. Tim -- tcross (at) rapttech dot com dot au