From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Julian Scheid Newsgroups: gmane.emacs.devel Subject: Disabling ATSUI on OS X Date: Mon, 26 Mar 2007 22:48:55 +1000 Message-ID: <4607C137.1040409@sektor37.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------030808020809010008020001" X-Trace: sea.gmane.org 1174913359 11168 80.91.229.12 (26 Mar 2007 12:49:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 26 Mar 2007 12:49:19 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 26 14:49:09 2007 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 1HVodJ-00072g-9c for ged-emacs-devel@m.gmane.org; Mon, 26 Mar 2007 14:49:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVofX-0002bi-RH for ged-emacs-devel@m.gmane.org; Mon, 26 Mar 2007 07:51:27 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HVofU-0002bc-5u for emacs-devel@gnu.org; Mon, 26 Mar 2007 08:51:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HVofS-0002bG-Mp for emacs-devel@gnu.org; Mon, 26 Mar 2007 08:51:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVofS-0002bD-HS for emacs-devel@gnu.org; Mon, 26 Mar 2007 07:51:22 -0500 Original-Received: from ipmail02.adl2.internode.on.net ([203.16.214.141]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HVodC-00012a-Qe for emacs-devel@gnu.org; Mon, 26 Mar 2007 08:49:03 -0400 Original-Received: from ppp26-164.lns1.syd6.internode.on.net (HELO [192.168.1.10]) ([59.167.26.164]) by ipmail02.adl2.internode.on.net with ESMTP; 26 Mar 2007 22:18:58 +0930 X-IronPort-AV: i="4.14,329,1170595800"; d="png'150?scan'150,208,150"; a="102323908:sNHT27669656" User-Agent: Thunderbird 1.5.0.10 (Macintosh/20070221) X-detected-kernel: 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:68591 Archived-At: This is a multi-part message in MIME format. --------------030808020809010008020001 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit In Emacs HEAD it is not possible to disable ATSUI font rendering on Mac OS X at run-time or at compile-time without hacking the source. $ grep -re 'define[[:space:]]\+USE_ATSUI' emacs emacs/src/macgui.h:#define USE_ATSUI 1 $ IMHO, and personal preference nonwithstanding, rendering without ATSUI should at least be an option at compile-time. I've attached an image to demonstrate that it delivers a crispness that is not matched by its ATSUI counterparts (top: USE_ATSUI=1, mac-allow-anti-aliasing=t; center: USE_ATSUI=1, mac-allow-anti-aliasing=nil; bottom: USE_ATSUI=0; all using "-*-Monaco-*-100-*"). In the spirit of offering choices I would suggest introducing a --disable-atsui configure option, and I'd be happy to send over a corresponding patch I have sitting here. It just defines USE_ATSUI to be 0 if the option is specified. Unfortunately I don't have knowledge about OS X font rendering APIs or Emacs source internals, or I would be preparing a patch that allows switching the rendering engine at run-time. Julian Scheid --------------030808020809010008020001 Content-Type: image/png; x-mac-type="0"; x-mac-creator="0"; name="atsui-comparison.png" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="atsui-comparison.png" iVBORw0KGgoAAAANSUhEUgAAACIAAAAsCAIAAACPL/3lAAAABGdBTUEAANkE3LLaAgAAAf9J REFUWMNjYBjmQC9U/Ox0CUda63LMk/9/UM6fRGtI0+UfI7JxttL/g4qri8XmV4hX2rADBWPy ZD4dVP1/UPXVbHE9BobKbsXf2+UKQMqF7uxWOZHHi1UXPtDULfdpN9BElVdrFV9tUdyYxMng J/H7oOqJYl4GQ5FXQEYGJwMD//V9qr+XSe9dpvJ/i7QjVl2EQzlDDuh9eCj7FwO5qg/my52d Lw+0704FL0jUVRzsP8UmZey6iAi3Yvn/+xChDLZGaWOF2NJaifkVYtAA8ZP4DrJGZXUoO1Zd RIBQaagzlXliDNn1YqThxum5ClX6AQNE4A4wnvrF5s9WBqqsxKaLGHt4D20ERTgQXSrmAfI7 +xUh3P+guOGZvxgYJTJgh/Oe3a36e5UkVl3EJVAbXn9kRxnyxLjy6JGqaxRQAv7TBYyGM/Ui 7KAqPXQha0jz5YMXAUA2UMTFmPPMLFlBHqZ3W5SAJJnWwA2FaIObDrEPogZoze5e6Y40YVy6 SPYNsn64ONBDQLaSJAvVAg2rZojPgJZRag3QIIhj4YEGjAYIAwjuLlcAsoFBh0sXUQDiWIgp yElgVYMEPAlAYgjZQ8i6RsFoRTDCKoIBKJ5ppQtrQYsmglniUVo84ypG4aZTLdCwVgT4XUOp b8hQRtgaPCFDUIqEhEB8EsCqaxQMDQAAD8oy+BK6ZYQAAAAASUVORK5CYII= --------------030808020809010008020001 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --------------030808020809010008020001--