* Re: Re: Patch to enable Quartz font smoothing on MACOSX
@ 2003-08-13 12:59 Niv Drory
2003-08-13 13:10 ` Andreas Schwab
0 siblings, 1 reply; 2+ messages in thread
From: Niv Drory @ 2003-08-13 12:59 UTC (permalink / raw)
Cc: akochoi-emacs
> 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
-------------------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Patch to enable Quartz font smoothing on MACOSX
2003-08-13 12:59 Re: Patch to enable Quartz font smoothing on MACOSX Niv Drory
@ 2003-08-13 13:10 ` Andreas Schwab
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Schwab @ 2003-08-13 13:10 UTC (permalink / raw)
Cc: akochoi-emacs, emacs-devel
Niv Drory <drory@astro.as.utexas.edu> 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."
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-08-13 13:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-13 12:59 Re: Patch to enable Quartz font smoothing on MACOSX Niv Drory
2003-08-13 13:10 ` Andreas Schwab
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).