From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#17973: Thin space not thin at all Date: Wed, 09 Jul 2014 15:21:16 -0400 Message-ID: References: <87d2deeeem.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1404933755 23183 80.91.229.3 (9 Jul 2014 19:22:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Jul 2014 19:22:35 +0000 (UTC) Cc: 17973@debbugs.gnu.org To: handa@gnu.org (K. Handa) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 09 21:22:28 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X4xRk-0008B2-37 for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Jul 2014 21:22:28 +0200 Original-Received: from localhost ([::1]:33355 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4xRj-0007hs-Mn for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Jul 2014 15:22:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44973) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4xRU-0007gQ-LH for bug-gnu-emacs@gnu.org; Wed, 09 Jul 2014 15:22:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X4xRK-0002F2-Oc for bug-gnu-emacs@gnu.org; Wed, 09 Jul 2014 15:22:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56946) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4xRK-0002Ew-I5 for bug-gnu-emacs@gnu.org; Wed, 09 Jul 2014 15:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1X4xRJ-0007G2-Qz for bug-gnu-emacs@gnu.org; Wed, 09 Jul 2014 15:22:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Jul 2014 19:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17973 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17973-submit@debbugs.gnu.org id=B17973.140493371327878 (code B ref 17973); Wed, 09 Jul 2014 19:22:01 +0000 Original-Received: (at 17973) by debbugs.gnu.org; 9 Jul 2014 19:21:53 +0000 Original-Received: from localhost ([127.0.0.1]:48094 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X4xR6-0007FT-93 for submit@debbugs.gnu.org; Wed, 09 Jul 2014 15:21:52 -0400 Original-Received: from mercure.iro.umontreal.ca ([132.204.24.67]:35471) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X4xR0-0007FF-7k; Wed, 09 Jul 2014 15:21:46 -0400 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 1E07D84DD2; Wed, 9 Jul 2014 15:21:40 -0400 (EDT) Original-Received: from lechon.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 84F441E5B74; Wed, 9 Jul 2014 15:21:16 -0400 (EDT) Original-Received: by lechon.iro.umontreal.ca (Postfix, from userid 20848) id 65BFDB4167; Wed, 9 Jul 2014 15:21:16 -0400 (EDT) In-Reply-To: <87d2deeeem.fsf@gnu.org> (K. Handa's message of "Thu, 10 Jul 2014 00:32:33 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82, MC_TSTLAST 0.00) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:91337 Archived-At: forcemerge 9787 17973 thanks > Yes, I agree that they are all the same bug. As far as I > know, the problem is with the mechanism of face attribute > merging. When the control reaches the font selection > function font_find_for_lface, font related attributes > (family, foundry, weight, ..., height, ...) are already > merged. As font_find_for_lface doesn't know which attribute > to respect more (except for what specified in > face-font-selection-order), it at first tries to get a list > of fonts whose family, foundry, registry, adstyle are the > same as merged attributes, and selects a font most close to > the specified height. So, IIUC you're saying that when we get to selecting a font, we have specifications such as family =3D fixed foundry =3D misc height =3D 2=BD pixels and we end up choosing the 13pixel-high font because it's the only one that matches "misc-fixed"? I do have a 6pixel-high misc-fixed font (tho not semicondensed), so it seems like it's not the whole explanation. Or is the "13pixel high" specification kept somewhere (elsewhere than in the "height", obviously)? I'm beginning to sense that the "13pixel high" specification is indeed kept elsewhere, and it is kept so as to avoid other problems I've had in the past, where the 13pixel spec was turned into a height spec and that this height spec was then used to look for a font and it occasionally found *another* font with the same height in points but not in pixels. Is that right? OTOH, doing a M-x customize-face REt default RET, then setting family to `fixed' and foundry to `misc', and then playing with `height' is pretty scary: height=3D2000 gives me a 9pixel-high font (!) whereas setting it to 200 gives a more reasonable 20pixel-high font. Stefan