From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1E58H6-0003O9-Jo for garchives@archives.gentoo.org; Tue, 16 Aug 2005 20:43:09 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j7GKfJeG016269; Tue, 16 Aug 2005 20:41:19 GMT Received: from ore.jhcloos.com (ore.jhcloos.com [64.240.156.239]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j7GKYed3019521 for ; Tue, 16 Aug 2005 20:34:41 GMT Received: from lugabout.jhcloos.org (host-69-48-13-128.roc.choiceone.net [69.48.13.128]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client CN "lugabout.jhcloos.org", Issuer "ca.jhcloos.com" (verified OK)) by ore.jhcloos.com (Postfix) with ESMTP id 912611D05E; Tue, 16 Aug 2005 15:35:17 -0500 (CDT) Received: by lugabout.jhcloos.org (Postfix, from userid 500) id A1E892091E7; Tue, 16 Aug 2005 20:35:07 +0000 (GMT) To: gentoo-user@lists.gentoo.org Cc: Allan Gottlieb Subject: [gentoo-user] Re: "6x13" font for gnome-terminal From: James Cloos In-Reply-To: (Allan Gottlieb's message of "Fri, 22 Jul 2005 18:24:01 -0400") References: X-Hashcash: 1:21:050816:gentoo-user@lists.gentoo.org::yZRwPtomc8C5hNB4:0000000000000000000000000000000008QKb X-Hashcash: 1:21:050816:gottlieb@nyu.edu::nXSWtHeaiEwWIGGg:04s0l Date: Tue, 16 Aug 2005 16:35:07 -0400 Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archives-Salt: 2ccea09f-1f8a-4e75-bf41-c9b89d960b8b X-Archives-Hash: 98ff1bc8da14488196cb7855e9de7e31 >>>>> "Allan" == Allan Gottlieb writes: Allan> ... I use what [the] 6x13 [bdf] font. Allan> Its [xlfd] name is Allan> -Misc-Fixed-Medium-R-SemiCondensed--13-120-75-75-C-60-ISO8859-1 Allan> Is there some way I can tell gnome-terminal to use Allan> -Misc-Fixed-Medium-R-SemiCondensed--13-120-75-75-C-60-ISO8859-1 Yes, xft supports bitmap fonts and this one should be in the list. It can be a bit of work to get the right fontconfig name for a given xlfd name, so the best thing to do is to find the fonts.dir file that matches the xlfd to a filename, and find that same filename in the fonts.cache-1 file in that directory. The font you want is in /usr/share/fonts/misc/6x13-ISO8859-1.pcf.gz and that matches this line in /usr/share/fonts/misc/fonts-cache-1: ,---- | "6x13-ISO8859-1.pcf.gz" 0 "Fixed-12:style=SemiCondensed:slant=0: | weight=100:width=87:pixelsize=13:spacing=110:foundry=Misc: | antialias=False:index=0:outline=False:scalable=False:dpi=75: | charset= |>^1!|>^1!|>^1!P0oWQ |>^1!|>^1!|>^1!: | lang=aa|...long-list...|zu: | fontversion=0:fontformat=PCF" `---- I've manually broken that to fit in 80 cols, and elided the full list of the lang attribute. This means that the string from Fixed to PCF is the full fontconfig name. In practice you can leave out a lot of that. This should let you view the font: :; xfd -fa 'Fixed-12:style=semicondensed:pixelsize=13:foundry=misc' the equivalent invocation for that font as a server-side font is: :; xfd -fn -Misc-Fixed-Medium-R-SemiCondensed--13-120-75-75-C-60-ISO8859-1 To get gnome-terminal to use that font you may need to manually edit the gconf file. I'd first make a named profile in gnome-terminal's edit current profile dialog (from the right-click menu), and then look for that profile's name in: ~/.gconf/apps/gnome-terminal/profiles/ The default profile is named Default, and its gconf file is: ~/.gconf/apps/gnome-terminal/profiles/Default/%gconf.xml In that file, look for: container w/in that entry. There is also an x_font entry that appears to take an xlfd, so I'd change that, too. Depending on your dpi setting, you might even get lucky by using g-t's dialog to choose Fixed, style=semicondensed and one of the offered point sizes. On my 133dpi screen -- with X actually using that dpi -- I was unable to get the dialog to match 6x13. As an alternative, you can try Vera Mono or DevaVu Mono; they have about the same aspect ratio as the bdf fixed fonts and look as good if you have freetype installed w/o bindist in USE. Ie, when using the bycode interpreter, the hinting leaves the stems sharp and adds just a hint of smoothing to the curves and diagonals. It looks especially sweet on an LCD w/ fontconfig setup w/ rgba. -JimC -- James H. Cloos, Jr. -- gentoo-user@gentoo.org mailing list