help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting emacs23 to use Bitstream Vera Sans Mono-8 font


From: Tim X
Subject: Re: Getting emacs23 to use Bitstream Vera Sans Mono-8 font
Date: Sun, 20 Jul 2008 17:44:01 +1000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

"Doctor Who" <address@hidden> writes:

> On 7/19/08, Joel J. Adamson <address@hidden> wrote:
>> "Doctor Who" <address@hidden> 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]