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

Re: Trying to use the Droid fonts in xterm



On 2011-02-05, John Magolske <listmail@b79.net> wrote:
> I just installed the Droid fonts on Debian sid like so:
>
>   % wget http://mirrors.kernel.org/ubuntu/pool/universe/t/ttf-droid/ttf-droid_1.00~b112+dfsg+1-0ubuntu1_all.deb
>   # dpkg -i ttf-droid_1.00\~b112+dfsg+1-0ubuntu1_all.deb
>   # fc-cache -v -f /usr/share/fonts/truetype/ttf-droid
>
> I find it's possible to pick & set this font using the pull-down menu in
> gvim, but how does one set it in xterm? I tried this in my ~/.Xresources
> (fc-list shows a "Droid Sans Mono:style=Regular") :
>
>   XTerm*font:  Droid Sans Mono:style=Regular
>
> But get this:
>
>   unable to open font "Droid Sans Mono:style=Regular", trying "fixed"....
>
> Any tips on how to get the Droid fonts working with xterm?

In the case of TrueType fonts you need to specify the faceName and
faceSize resources, e.g., 

	XTerm*faceName: Droid Sans Mono
	XTerm*faceSize: 9

Or you can specify the same at startup:

	xterm -fa "Droid Sans Mono" -fs 9

-- 
Liam O'Toole
Cork, Ireland



Reply to: