From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: Semi-OT: font advice Date: Fri, 23 Apr 2004 13:28:56 +1000 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87llknid8n.fsf@tiger.rapttech.com.au> References: Reply-To: timx@spamto.devnul.com NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1082691196 5668 80.91.224.253 (23 Apr 2004 03:33:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Apr 2004 03:33:16 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 23 05:33:08 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BGrR6-0007t2-00 for ; Fri, 23 Apr 2004 05:33:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BGrPG-0006An-66 for geh-help-gnu-emacs@m.gmane.org; Thu, 22 Apr 2004 23:31:14 -0400 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:Q85f6NGINNZxAsk18TpRLBCJjuw= Original-NNTP-Posting-Host: ppp120-39.lns1.syd2.internode.on.net Original-X-Trace: duster.adelaide.on.net 1082690922 150.101.120.39 (23 Apr 2004 12:58:42 +0950) Original-Lines: 76 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.news.ucla.edu!newsfeed.media.kyoto-u.ac.jp!snewsf0.syd.ops.aspac.uu.net!duster.adelaide.on.net!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:122611 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:17899 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:17899 >>>>> "Jesse" == Jesse Sheidlower writes: Jesse> I recently got a new computer, and the monitor's resolution at Jesse> 1400 x 1050 is such that the default font, which seems to be Jesse> "-adobe-courier-medium-r-normal--12-120-75-75-m-70-iso8859-1", Jesse> is too small to comfortably read. I am trying to find a font Jesse> that is better but am having trouble working with the fonts, Jesse> and would appreciate some advice. Jesse> The fonts I can choose from Shift-Mouse-1 are generally either Jesse> too small to be comfortably legible, or too large to fit Jesse> happily in a window. For example the "9x15" font, which is Jesse> "-Misc-Fixed-Medium-R-Normal--15-140-75-75-C-90-ISO8859-1", is Jesse> a good shape but too large for seeing good chunks of Jesse> programs. I very much like the shape of the "fixed" font, Jesse> which is Jesse> "-Misc-Fixed-Medium-R-SemiCondensed--13-120-75-75-C-60-ISO8859-1", Jesse> but it's way too small, yet I don't seem to have a larger Jesse> version of this available. Jesse> The font I have in my terminal window isn't bad, but I don't Jesse> know what it is in terms of the "-*-*-" form--I'm running Jesse> Gnome, and it's chosen from a menu as being in the "Monospace" Jesse> family, regular, 11 pt. Jesse> I guess my biggest problem is that I don't know how to browse Jesse> the fonts on my system from within Emacs in a way that shows Jesse> me what they really look like and what their formal names Jesse> are. I've read through the Wiki and other places and don't Jesse> really know what to try next. Any advice, either for a Jesse> specific font or for ways to better browse what I have? I'm Jesse> happy to install any fonts on my system. Jesse> Another thing is that when I do specify a font in my .emacs Jesse> with something like Jesse> (set-face-font 'default Jesse> "-Misc-Fixed-Medium-R-Normal--15-140-75-75-C-90-ISO8859-1") Jesse> I then can't run Emacs in a terminal window (i.e. starting up Jesse> with "emacs -nw")--I get a error "Error in init file: error: Jesse> "X windows are not in use or not initialized"". Assuming I do Jesse> eventually find a nice font, how do I use it in X without Jesse> screwing up my non-X sessions? Jesse> Thanks very much. I'm running GNU Emacs 21.3.1, if that Jesse> matters. Jesse> Jesse Sheidlower Probably the easiest way to change the font is to use xfontsel, which will give you a way of selecting different fonts based on foundry, family, weight, slant, width, point size, resolution, registry style etc. Once you have found a font which you think is good, cut and select it and then run emacs with the -fn argument to set the font using the one you have just selected. If it looks good, then put that into your .Xresources file with a line like emacs*font: then as long as xrdb runs and loads your.Xresources when you login, the default emacs font will be set to that value. Note that most modern .inux distributions are configured by default to load personal .Xresources. Also, a very useful command in emacs 21.x is M-x list-faces-display. Tim -- Tim Cross The e-mail address on this message is FALSE (obviously!). My real e-mail is to a company in Australia called rapttech and my login is tcross - if you really need to send mail, you should be able to work it out!