Re: pangocairo on Mac: transformation matrix and fontsize



On Dec 10, 2012, at 12:22 PM, Behdad Esfahbod <behdad behdad org> wrote:

> On 12-12-10 03:18 PM, John Ralls wrote:
>> However, a much more serious problem arose once those two were accounted for:
>> The 10.4 SDK includes the library for CoreText, but no headers, so bb-core-text.cc won't build. I managed to get around that by copying the headers over from the 10.5 SDK plus a few hacks to make them work,along with CGFontCreateWithDataProvider, I still had:
> 
> Can you give me the configure.ac snippet to only activate CoreText backend on
> 10.5 and later?

Here ya go:

From e326298f321e41926d5f5ac7b489f350daf7166b Mon Sep 17 00:00:00 2001
From: John Ralls <jralls ceridwen us>
Date: Mon, 10 Dec 2012 13:06:48 -0800
Subject: [PATCH] Better test for CoreText

Instead of checking for ApplicationServices.h, which is present in all
versions of MacOSX, check for CTFontRef, a CoreText basic type.
---
 configure.ac |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index cda103b..49accd7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -220,7 +220,7 @@ AM_CONDITIONAL(HAVE_UNISCRIBE, $have_uniscribe)
 
 dnl ===========================================================================
 
-AC_CHECK_HEADERS(ApplicationServices/ApplicationServices.h, have_coretext=true, have_coretext=false)
+AC_CHECK_TYPE(CTFontRef, have_coretext=true, have_coretext=false, [#include <ApplicationServices/ApplicationServices.h>])
 if $have_coretext; then
 	CORETEXT_CFLAGS=
 	CORETEXT_LIBS="-framework ApplicationServices"
-- 
1.7.6.1


Regards,
John Ralls



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]