From owner-freebsd-questions@FreeBSD.ORG Wed Jun 11 11:39:22 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EF6961065682 for ; Wed, 11 Jun 2008 11:39:22 +0000 (UTC) (envelope-from dangkm@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.248]) by mx1.freebsd.org (Postfix) with ESMTP id A2B5B8FC0A for ; Wed, 11 Jun 2008 11:39:22 +0000 (UTC) (envelope-from dangkm@gmail.com) Received: by an-out-0708.google.com with SMTP id b33so761153ana.13 for ; Wed, 11 Jun 2008 04:39:22 -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=cLzSb8CUAJfjhQZ9bw2RC21TJkregtqGgq+XMN9qFcE=; b=um+pSlugqnqA7eUTOyAGvpeXenBjBdrqYq8arMBQ78tuiZ3mgKlSYuenG9zHqj3eyJ ZbI2Nr2fssTN2PdLuPHxy4sXcYBW6wh/RWgnxaELrC63rHSrtBUqDpe+YG8yfJdUby0b xZrrknaNsN301PxPBK1Kh4LEET5v1FNdOzJ/o= 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=r1LJB4bP05J6NzNImY3/ZnqqAbJHqBUOW7vRDXbZKCp4qgRBwkka/zUf9lW77y7HFj scIzERUle2NCKNCh5FRtsgIMfgD+oJsJ193oErPHX2MpcwyMO6FsgrIJscQOcFNyAOeY uq9DvpRsgzskn7VR8fOjo0VY6iFjPCPd9RYro= Received: by 10.100.110.16 with SMTP id i16mr7376929anc.101.1213184361154; Wed, 11 Jun 2008 04:39:21 -0700 (PDT) Received: by 10.100.254.5 with HTTP; Wed, 11 Jun 2008 04:39:21 -0700 (PDT) Message-ID: <82f916c90806110439vf4c6d7bj25370e8af135484b@mail.gmail.com> Date: Wed, 11 Jun 2008 12:39:21 +0100 From: "Kemian Dang" To: "Frank Shute" , freebsd-questions@freebsd.org In-Reply-To: <20080608175200.GB91631@melon.esperance-linux.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <82f916c90806080741n70af2fbew7bb1aaa410847a60@mail.gmail.com> <20080608155315.GA91631@melon.esperance-linux.co.uk> <82f916c90806081006s6d16e8f6ve1557a2acd41c670@mail.gmail.com> <20080608175200.GB91631@melon.esperance-linux.co.uk> Cc: Subject: Re: [OT]Change font for aterm X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2008 11:39:23 -0000 2008/6/8 Frank Shute : > On Sun, Jun 08, 2008 at 06:06:38PM +0100, Kemian Dang wrote: >> >> 2008/6/8 Frank Shute : >> > On Sun, Jun 08, 2008 at 03:41:53PM +0100, Kemian Dang wrote: >> >> >> >> Dear All, >> >> >> >> I used to use Bitstream Vera Sans Mono in Gnome-terminal, by change >> >> the configure in the menu. >> >> Now I am using aterm, but I also want to use that font. >> >> >> >> I can see it by fc-list: >> >> >> >> [3:39pm:kemian] ~> fc-list | grep "Sans Mono" >> >> Bitstream Vera Sans Mono:style=Bold >> >> Bitstream Vera Sans Mono:style=Oblique >> >> Bitstream Vera Sans Mono:style=Bold Oblique >> >> Bitstream Vera Sans Mono:style=Roman >> >> >> >> I add entry in .Xresources: >> >> >> >> Aterm*font: xft:Bitstream Vera Sans Mono:style=Roman >> > >> > Use: >> > >> > Aterm*font: -bitstream-bitstream\ vera\ sans\ mono-medium-r-normal--16-0-0-0-m-0-iso8859-15 >> > >> > in ~/.Xdefaults (all on one line). >> > >> >> aterm still complain can not find this font. >> >> > Then: >> > >> > $ xrdb -load > > Sorry. should have been: > > $ xrdb -load ~/.Xdefaults > >> >> This command did not give any output, it held there and nothing happened. >> I have to Ctrl+C to stop it. >> >> > >> > The size of the font can be varied by changing the 16 in that line. >> > >> > $ xlsfonts | less >> >> This did not give the output of "bitstream vera sans mono". > > Does the dir /usr/local/lib/X11/fonts/bitstream-vera/ exist? > > If not you have to install: x11-fonts/bitstream-vera and follow the > instructions to change your xorg.conf and then restart X. > > If it exists, you have to add the dir to xorg.conf like so: > > FontPath "/usr/local/lib/X11/fonts/bitstream-vera/" > > under the "Files" section. Restart X. > > X should read ~/.Xdefaults on start up & your font will be used for > aterm. > > xlsfonts should also now list the bitstream vera fonts. > > Regards, > > -- > > Frank > > > Contact info: http://www.shute.org.uk/misc/contact.html > > Thanks a lot, it works. There is no font path in the xorg.conf, and after I add them in, it comes out. Another thing is, it did not recognize the "\ " to space, the " " will work. The font line I am using is: Aterm*font: -bitstream-bitstream vera sans mono-medium-r-normal--0-0-0-0-m-0-iso8859-1 Though the font seems a little bigger than I suppose, anyway, it works. Sorry for replying later due to lot of work these days. -- Best wishes, Kemian