From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.devel Subject: Re: face-remapping-alist client code Date: Mon, 2 Jun 2008 17:09:36 +0200 Message-ID: References: <611w3gcesf.fsf@fencepost.gnu.org> <005201c8c4bb$aec2f580$0200a8c0@us.oracle.com> <87tzgbzyjq.fsf@catnip.gol.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1212419480 29080 80.91.229.12 (2 Jun 2008 15:11:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Jun 2008 15:11:20 +0000 (UTC) Cc: Drew Adams , emacs-devel@gnu.org To: "Miles Bader" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 02 17:12:01 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K3Bh1-0000qQ-0z for ged-emacs-devel@m.gmane.org; Mon, 02 Jun 2008 17:11:27 +0200 Original-Received: from localhost ([127.0.0.1]:44873 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K3BgE-00089J-Ns for ged-emacs-devel@m.gmane.org; Mon, 02 Jun 2008 11:10:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K3BfI-0007ay-If for emacs-devel@gnu.org; Mon, 02 Jun 2008 11:09:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K3BfG-0007Zt-SL for emacs-devel@gnu.org; Mon, 02 Jun 2008 11:09:39 -0400 Original-Received: from [199.232.76.173] (port=47877 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K3BfG-0007Zb-C8 for emacs-devel@gnu.org; Mon, 02 Jun 2008 11:09:38 -0400 Original-Received: from rn-out-0910.google.com ([64.233.170.190]:15076) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K3BfG-0002kR-Ef for emacs-devel@gnu.org; Mon, 02 Jun 2008 11:09:38 -0400 Original-Received: by rn-out-0910.google.com with SMTP id j66so224285rne.7 for ; Mon, 02 Jun 2008 08:09:36 -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:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=d+q7JEkpCqMt0B0WxeRXTYu09ySrhh4QZm67eQ/JrME=; b=Mo3oonb/k7XpOYENK0ZkJgFnX21A8Ri/UpJoZPy6ZiZYdlAuTgzwCniLuJLAupOStnoR5/b9V+Ua9nbSYiev6lerBH8g0dI+Dv4FHuU3qyVbE0cupp472TBj3OLwGL6XMe/9dKIoBDGQcLdRZbKQdYHpWQFArqwss6i1/Tf9olI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=mPTSdDuzB+7IOU1GtT30H3kKwaa7+dupbiV3A9IASABlmylRuB19nBR9RQbOEHdCQfCdfBEEKiPgcBAnvDXBf+I+o24JOy5rJPjtPBZxWfKSoExEb0XPGS0HNrNImNc+IUAkxoBY7EJkBhzI99+ZI9tFbw+UnX0vsqy5zIQX9ys= Original-Received: by 10.114.166.1 with SMTP id o1mr4572916wae.119.1212419376172; Mon, 02 Jun 2008 08:09:36 -0700 (PDT) Original-Received: by 10.114.167.17 with HTTP; Mon, 2 Jun 2008 08:09:36 -0700 (PDT) In-Reply-To: <87tzgbzyjq.fsf@catnip.gol.com> Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:98235 Archived-At: On Mon, Jun 2, 2008 at 4:44 PM, Miles Bader wrote: > The size calculations I'm using are the same as before -- a simple > constant factor height scaling for each step -- and probably will > occasionally miss a step on platforms with only non-scalable fonts and > poor font size coverage. With scalable fonts, however, this simple > calculation works very well. With Vera Sans Mono, and using a smaller scale step (1.07) I get all point sizes from 13 to 24 except for 19 and 23. Goint down it hits every size, of course, though some of them appear twice because in some steps the scaling is not big enough to reduce the font. All in all, is quite useful and simple. Thanks. A couple of small nitpicks: - the variables `text-scale-mode-lighter', `text-scale-mode-remapping', `text-scale-mode-amount' and `variable-pitch-mode-remapping' would make more sense as automatically buffer local, as they are always buffer-local'ized when used. - the lighter for variable-pitch-mode is a bit of redundant, isn't it? Either the user has a variable-pitch face different from the default one (and so he doesn't need the reminder in the modeline), or the mode is not going to be useful anyway... Juanma