From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Niv Drory Newsgroups: gmane.emacs.devel Subject: Re: Re: Patch to enable Quartz font smoothing on MACOSX Date: Wed, 13 Aug 2003 07:59:28 -0500 (CDT) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1060779774 27670 80.91.224.253 (13 Aug 2003 13:02:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 13 Aug 2003 13:02:54 +0000 (UTC) Cc: akochoi-emacs@shaw.ca Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Aug 13 15:02:51 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19mvH9-0007Zu-00 for ; Wed, 13 Aug 2003 15:02:51 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19mvHG-0000KT-00 for ; Wed, 13 Aug 2003 15:02:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19mvFv-0007VW-7o for emacs-devel@quimby.gnus.org; Wed, 13 Aug 2003 09:01:35 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19mvER-0007S0-MW for emacs-devel@gnu.org; Wed, 13 Aug 2003 09:00:03 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19mvDu-0006iu-Pj for emacs-devel@gnu.org; Wed, 13 Aug 2003 09:00:01 -0400 Original-Received: from [128.83.129.40] (helo=astro.as.utexas.edu) by monty-python.gnu.org with esmtp (Exim 4.20) id 19mvDu-0006hF-Ca for emacs-devel@gnu.org; Wed, 13 Aug 2003 08:59:30 -0400 Original-Received: from astro.as.utexas.edu (localhost [127.0.0.1]) by astro.as.utexas.edu (8.12.9/8.12.9) with ESMTP id h7DCxT1V009141; Wed, 13 Aug 2003 07:59:29 -0500 (CDT) Original-Received: from localhost (drory@localhost) by astro.as.utexas.edu (8.12.9/8.12.9/Submit) with ESMTP id h7DCxTi0009138; Wed, 13 Aug 2003 07:59:29 -0500 (CDT) Original-To: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:15926 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15926 > I can only be in favor of adding this patch if `./configure' is made > to automatically determine whether the function SwapQDTextFlags is > available. An option to `./configure' is not a good solution. Some people prefer QuickDraw font smoothing, that's why I'd prefer a user setable switch. Anyway, here's a patch to configure.in --- configure.in Wed Aug 13 07:40:21 2003 +++ configure.in.new Wed Aug 13 07:42:08 2003 @@ -2218,6 +2218,7 @@ ### Use Mac OS X Carbon API to implement GUI. HAVE_CARBON=no +ENABLE_QUARTZ_FONT_SMOOTHING=no if test "${with_carbon}" != "no"; then AC_CHECK_HEADER(Carbon/Carbon.h, HAVE_CARBON=yes) fi @@ -2235,6 +2236,12 @@ fi # We also have mouse menus. HAVE_MENUS=yes + # check for Mac OS X Version >= 10.1.5 for Quartz font-smoothing + # (this corresponds to Darwin 5.5) + darwin_55=$(expr $(uname -r) ">=" 5.5) + if test ${darwin_55} = 1 ; then + AC_DEFINE(ENABLE_QUARTZ_FONT_SMOOTHING, 1, [Enable Quartz font smoothing]) + fi fi ### Use session management (-lSM -lICE) if available ------------------------------------------------------------------- Niv Drory | Department of Astronomy | phone: (512) 471 7426 The University of Texas at Austin | drory@astro.as.utexas.edu -------------------------------------------------------------------