From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.help Subject: Re: setting font size Date: Mon, 1 Nov 2010 18:50:59 -0700 (PDT) Organization: http://groups.google.com Message-ID: <45258d6d-5531-45e7-a218-78dc573a7b9e@e14g2000yqe.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1291893578 11125 80.91.229.12 (9 Dec 2010 11:19:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 11:19:38 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 09 12:19:34 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQeX7-0006T9-Pv for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 12:19:33 +0100 Original-Received: from localhost ([127.0.0.1]:51319 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQeX6-0007l8-Fv for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 06:19:32 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!e14g2000yqe.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-NNTP-Posting-Host: 61.4.103.130 Original-X-Trace: posting.google.com 1288662659 13582 127.0.0.1 (2 Nov 2010 01:50:59 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 2 Nov 2010 01:50:59 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: e14g2000yqe.googlegroups.com; posting-host=61.4.103.130; posting-account=pYxWjwkAAACsHSUNDoi5N05LVCTP7PVM User-Agent: G2/1.0 X-HTTP-Via: 1.1 rndgate.rnd.clarion.com.my:8080 (squid/2.5.STABLE6) X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 ( .NET CLR 3.5.30729), gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:182151 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:76985 Archived-At: On Nov 2, 2:33=A0am, "Russ P." wrote: > Using the same .emacs file that I use on Red Hat, I get a ridiculously > large font on the Ubuntu Emacs. =A0The only lines in my .emacs file that > I think could have an effect on font size are these: > > (add-hook 'font-lock-mode-hook #'(lambda()(use-local-map nil))) > (custom-set-faces '(default ((t (:size "14pt" :family "Courier 10 > Pitch"))) t)) > (set-face-attribute 'default nil :family "Courier 10 Pitch") > (set-face-attribute 'default (selected-frame) :height 130) The second line above is setting your font to a huge 14pt. The forth line is resetting it to a slightly less huge 13pt. I'd suggest removing the last two lines and setting the font through customize, where you can see the results as you set it. Apparently your Red Hat installation must be getting your monitor dpi wrong if it is not displaying 14 and 13pt fonts at a large size.