From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.devel Subject: Re: ATSUI support on Carbon Emacs Date: Thu, 13 Oct 2005 17:17:18 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <3CB0FB88-880A-4AC2-AA32-24216FEAA175@gmail.com> <329DA0D5-0849-40CE-96A2-933B1B7D14A7@gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1129196826 1073 80.91.229.2 (13 Oct 2005 09:47:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 13 Oct 2005 09:47:06 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 13 11:46:57 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EPzfI-00031u-J1 for ged-emacs-devel@m.gmane.org; Thu, 13 Oct 2005 11:46:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EPzfH-0006A9-MH for ged-emacs-devel@m.gmane.org; Thu, 13 Oct 2005 05:46:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EPyLp-0004pv-Uq for emacs-devel@gnu.org; Thu, 13 Oct 2005 04:22:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EPyKU-0004YV-EA for emacs-devel@gnu.org; Thu, 13 Oct 2005 04:20:48 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EPyHC-0003ov-RW for emacs-devel@gnu.org; Thu, 13 Oct 2005 04:17:27 -0400 Original-Received: from [133.82.132.2] (helo=mathmail.math.s.chiba-u.ac.jp) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EPyHC-00031X-Gz for emacs-devel@gnu.org; Thu, 13 Oct 2005 04:17:22 -0400 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 161412CA3; Thu, 13 Oct 2005 17:17:18 +0900 (JST) Original-To: David Reitter In-Reply-To: <329DA0D5-0849-40CE-96A2-933B1B7D14A7@gmail.com> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.6 (Marutamachi) APEL/10.6 Emacs/22.0.50 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) 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:43973 Archived-At: >>>>> On Wed, 12 Oct 2005 10:24:49 +0100, David Reitter said: > No, not in terms of letter spacing. I've fallen victim to an optical > illusion. It's the line-spacing that makes text appear more loose > in other apps. Take a look at these screenshots. The enlarged image > shows Emacs on the left, and TextEdit on the right. > Also, note that the first line is glued to the tool-bar, which > doesn't look good at all. Hmm, I've no idea. Two ways to calculate the line height are shown in http://developer.apple.com/documentation/Carbon/Conceptual/ATSUI_Concepts/atsui_chap4/chapter_4_section_12.html and Carbon Emacs applies the second one to the space character for getting font ascent and descent(+leading). I also tried some alternatives such as the first one, the maximum value among all ASCII characters, a metric function in ATS, and several adjustment of parameters in ATSUI. But all of them give essentially the same results. Moreover, QuickDraw Text + `SwapQDTextFlags (kQDUseCGTextRendering | kQDUseCGTextMetrics)' also shows the same result. So I think it is the inherent metric for Helvetica. Maybe Cocoa does something special? Do you know how other Carbon applications that use ATSUI look? YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp