From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: handa@gnu.org (K. Handa) Newsgroups: gmane.emacs.bugs Subject: bug#17973: Thin space not thin at all Date: Thu, 10 Jul 2014 00:32:33 +0900 Message-ID: <87d2deeeem.fsf@gnu.org> References: 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 1405033614 26297 80.91.229.3 (10 Jul 2014 23:06:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Jul 2014 23:06:54 +0000 (UTC) Cc: 17973@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 11 01:06:47 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 1X5NQJ-0006cj-9x for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Jul 2014 01:06:43 +0200 Original-Received: from localhost ([::1]:40760 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5NQI-0003hb-Kx for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Jul 2014 19:06:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55046) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4trj-00043A-VK for bug-gnu-emacs@gnu.org; Wed, 09 Jul 2014 11:33:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X4tri-0007cC-Vo for bug-gnu-emacs@gnu.org; Wed, 09 Jul 2014 11:33:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56819) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4tri-0007c8-Ri for bug-gnu-emacs@gnu.org; Wed, 09 Jul 2014 11:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1X4tri-0000Eb-Ag for bug-gnu-emacs@gnu.org; Wed, 09 Jul 2014 11:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: handa@gnu.org (K. Handa) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Jul 2014 15:33:02 +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.1404919968872 (code B ref 17973); Wed, 09 Jul 2014 15:33:02 +0000 Original-Received: (at 17973) by debbugs.gnu.org; 9 Jul 2014 15:32:48 +0000 Original-Received: from localhost ([127.0.0.1]:47969 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X4trT-0000Dz-AQ for submit@debbugs.gnu.org; Wed, 09 Jul 2014 11:32:47 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:47702 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X4trQ-0000Dq-8L for 17973@debbugs.gnu.org; Wed, 09 Jul 2014 11:32:45 -0400 Original-Received: from fl1-119-240-91-99.iba.mesh.ad.jp ([119.240.91.99]:48698 helo=wanchai) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1X4trP-00033e-BF; Wed, 09 Jul 2014 11:32:43 -0400 Original-Received: from handa by wanchai with local (Exim 4.80) (envelope-from ) id 1X4trF-0007kN-V6; Thu, 10 Jul 2014 00:32:34 +0900 In-Reply-To: (message from Stefan Monnier on Tue, 08 Jul 2014 14:07:53 -0400) 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:91417 Archived-At: In article , Stefan Monnier writes: > % emacs-24/src/emacs -Q -fn '-misc-fixed-*-r-semicondensed--13-*-*-*-*= -*-*' > M-< C-f C-x SPC > At this point I should see a thin space before the cursor (highlighted > with the region face). Instead I see a full space. > C-u C-x =3D > indeed shows that there's an overlay at point with an after-string of: > #(" " 0 1 (face (region (:height 0.2)))) > Now admittedly, ":height 0.2" does not specify a width, but Emacs should > be able to find a font that's about 2=BD pixels high but not > 6 pixels wide. > This is related to bug#16403, in that this is probably a long-standing > bug, but the new rectangular region makes it more visible. > Maybe it's actually the same bug as bug#9787 as well, which is also more > visible since *VC-log* uses such a "thin line" to separate the header > from the body. 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. To fix this problem, perhaps we must propagate the information about how font related attributes are merged; i.e. which one comes from the specific face directly and which one is inherited from the other faces (including the default face). It's not a trivial work. --- Kenichi Handa handa@gnu.org