From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Doctor Who" Newsgroups: gmane.emacs.help Subject: Re: Getting emacs23 to use Bitstream Vera Sans Mono-8 font Date: Sun, 20 Jul 2008 09:04:26 -0400 Message-ID: <4b75340e0807200604y25c33f5bm562fa24aeda4d3f@mail.gmail.com> References: <4b75340e0807180959n6f27757bg4c6049d6c56f196e@mail.gmail.com> <87vdz1lnz7.fsf@edna.homeunix.org> <87hcal2e66.fsf@lion.rapttech.com.au> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1216559128 10422 80.91.229.10 (20 Jul 2008 13:05:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Jul 2008 13:05:28 +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 15:33:06 2008 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1KKZ28-0006dq-6t for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Jul 2008 15:33:04 +0200 Original-Received: from localhost ([127.0.0.1]:42366 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KKYbH-0008JX-93 for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Jul 2008 09:05:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KKYaW-00083g-Gc for help-gnu-emacs@gnu.org; Sun, 20 Jul 2008 09:04:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KKYaV-00082E-3W for help-gnu-emacs@gnu.org; Sun, 20 Jul 2008 09:04:32 -0400 Original-Received: from [199.232.76.173] (port=51419 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KKYaU-00082A-Kb for help-gnu-emacs@gnu.org; Sun, 20 Jul 2008 09:04:30 -0400 Original-Received: from wx-out-0506.google.com ([66.249.82.239]:53001) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KKYaR-00031y-Hy for help-gnu-emacs@gnu.org; Sun, 20 Jul 2008 09:04:28 -0400 Original-Received: by wx-out-0506.google.com with SMTP id h28so412151wxd.24 for ; Sun, 20 Jul 2008 06:04:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=JaznorCRO1mFW6PcvC15kJu6CW1ncEF6kQSeWggVHmY=; b=oVJvTj8mLL9XeGIo9vazZD46TPRxgNjtEsBKGaBCbyks4ArxGMd+gyEA+RHLDGj3vJ 7JMOnV34o3TcU/i5ADtnSKJvjgmo+NE43EkVyNL9Gdwb1BkGLv6iDon3xCDp7HYskqFV g3wDlZeobQMUVSksxMDMsyYKXKCzS6HXQXNYs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=nD5cCZjuocLwn8HoQs7Z8LuyFb1GP3tNf/gS2lfAX4ghxLqmC8wm6R1voAnzX1FzoW d8dbGntbvtKsWKMKMfZi+vHRc2/VFK+8cbgTDQHTydU1tL5lVnHzkYunzSbYohSPwxMm c5g0KfFvNo9FceTyhWZ+hFLkN9JPCOM3egd1I= Original-Received: by 10.70.92.18 with SMTP id p18mr2145223wxb.87.1216559066345; Sun, 20 Jul 2008 06:04:26 -0700 (PDT) Original-Received: by 10.70.61.4 with HTTP; Sun, 20 Jul 2008 06:04:26 -0700 (PDT) In-Reply-To: <87hcal2e66.fsf@lion.rapttech.com.au> Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:55748 Archived-At: On 7/20/08, Tim X wrote: > "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 > Thanks. So I found the default font I want to use as the default in the emacs editor window using fc-list: Bitstream Vera Sans Mono:style=Roman Now, how do I go about having emacs-23 use this font in the editor window? Do I use ~/.Xresources or ~/Xdefaults. What is the correct syntax for the file to use? Thanks!