From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Zero height line causing arithmetic errors Date: Thu, 19 Jun 2008 10:13:31 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1213884846 6602 80.91.229.12 (19 Jun 2008 14:14:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Jun 2008 14:14:06 +0000 (UTC) Cc: emacs-devel@gnu.org To: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 19 16:14:40 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 1K9KuD-0007Y6-Dh for ged-emacs-devel@m.gmane.org; Thu, 19 Jun 2008 16:14:29 +0200 Original-Received: from localhost ([127.0.0.1]:53928 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K9KtO-00078F-Ig for ged-emacs-devel@m.gmane.org; Thu, 19 Jun 2008 10:13:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K9KtK-00077z-3Y for emacs-devel@gnu.org; Thu, 19 Jun 2008 10:13:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K9KtJ-00077n-Kl for emacs-devel@gnu.org; Thu, 19 Jun 2008 10:13:33 -0400 Original-Received: from [199.232.76.173] (port=38095 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K9KtJ-00077k-Ge for emacs-devel@gnu.org; Thu, 19 Jun 2008 10:13:33 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:13284) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K9KtI-0008Cc-6P for emacs-devel@gnu.org; Thu, 19 Jun 2008 10:13:32 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ar4EAIwGWkjO+KWv/2dsb2JhbACBWq5h X-IronPort-AV: E=Sophos;i="4.27,672,1204520400"; d="scan'208";a="22959473" Original-Received: from smtp.pppoe.ca (HELO smtp.teksavvy.com) ([65.39.196.238]) by ironport2-out.teksavvy.com with ESMTP; 19 Jun 2008 10:13:31 -0400 Original-Received: from pastel.home ([206.248.165.175]) by smtp.teksavvy.com (Internet Mail Server v1.0) with ESMTP id ZUG76531; Thu, 19 Jun 2008 10:13:31 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 3A6E2848A; Thu, 19 Jun 2008 10:13:31 -0400 (EDT) In-Reply-To: (Kenichi Handa's message of "Thu, 19 Jun 2008 10:12:51 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:99468 Archived-At: > For the problem of FRAME_SMALLEST_FONT_HEIGHT being set to > 0, I installed the similar change. Thanks. > And, for the problem of too tall line-height, I found the > culprit is XftTextExtents8. When the pixelsize of a font is I think the problem I've been seeing is a different one. While trying to solve some other problem I discovered that my problem was linked to issues where Xresource font settings seem impose themselves too strongly, so the font-backend used was most likely X rather than xft (in my case) and the problem disappeared if I removed those font settings and let the font be specified some other way. I.e. I'm glad you found your bug, but mine is still around, and is probably elsewhere altogether. > But, note that the line height is still 2, not 1. That's > because the display engine calculate the line height by > ascent+descent, and both ascent and descent doesn't become 0 > in the structure XftFont even though `height' member is 1. > It may be another Xft (or freetype) problem. Yes, I saw that. I found it curious, but was actually happy about it: I prefer my line to be 2 pixels thick (Emacs-22 makes it even thicker, BTW). Stefan