From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: Patch to enable Quartz font smoothing on MACOSX Date: Wed, 13 Aug 2003 15:10:54 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1060780494 29088 80.91.224.253 (13 Aug 2003 13:14:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 13 Aug 2003 13:14:54 +0000 (UTC) Cc: akochoi-emacs@shaw.ca, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Aug 13 15:14:52 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 19mvSm-0008Bk-00 for ; Wed, 13 Aug 2003 15:14:52 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19mvSt-0000QM-00 for ; Wed, 13 Aug 2003 15:14:59 +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 19mvQe-0004j4-Ft for emacs-devel@quimby.gnus.org; Wed, 13 Aug 2003 09:12:40 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19mvQY-0004iN-8k for emacs-devel@gnu.org; Wed, 13 Aug 2003 09:12:34 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19mvQ2-0004P3-A8 for emacs-devel@gnu.org; Wed, 13 Aug 2003 09:12:33 -0400 Original-Received: from [213.95.15.193] (helo=Cantor.suse.de) by monty-python.gnu.org with esmtp (Exim 4.20) id 19mvQ1-0004OG-MO for emacs-devel@gnu.org; Wed, 13 Aug 2003 09:12:01 -0400 Original-Received: from Hermes.suse.de (Hermes.suse.de [213.95.15.136]) by Cantor.suse.de (Postfix) with ESMTP id BD22714F54; Wed, 13 Aug 2003 15:10:55 +0200 (MEST) Original-To: Niv Drory X-Yow: Now I'm having INSIPID THOUGHTS about the beautiful, round wives of HOLLYWOOD MOVIE MOGULS encased in PLEXIGLASS CARS and being approached by SMALL BOYS selling FRUIT.. In-Reply-To: (Niv Drory's message of "Wed, 13 Aug 2003 07:59:28 -0500 (CDT)") User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (gnu/linux) 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:15928 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15928 Niv Drory writes: |> > 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) This will fail when `uname -r' return "5.10". Why can't you just check for the existence of a particular function in the library? Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."