blob: 7d12f53a04e0abbdcfff6ca77e41b8e5a2b15d3f [file] [log] [blame]
epoger@google.comec3ed6a2011-07-28 14:26:00 +00001
reed@android.com0680d6c2008-12-19 19:46:15 +00002/*
epoger@google.comec3ed6a2011-07-28 14:26:00 +00003 * Copyright 2006 The Android Open Source Project
4 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
7 */
8
reed@android.com0680d6c2008-12-19 19:46:15 +00009
reed@android.com0680d6c2008-12-19 19:46:15 +000010
reed@android.comfeda2f92010-05-19 13:47:05 +000011/*
12 ** Mac Text API
13 **
14 **
15 ** Two text APIs are available on the Mac, ATSUI and CoreText.
16 **
17 ** ATSUI is available on all versions of Mac OS X, but is 32-bit only.
18 **
19 ** The replacement API, CoreText, supports both 32-bit and 64-bit builds
20 ** but is only available from Mac OS X 10.5 onwards.
21 **
22 ** To maintain support for Mac OS X 10.4, we default to ATSUI in 32-bit
23 ** builds unless SK_USE_CORETEXT is defined.
24*/
25#ifndef SK_USE_CORETEXT
caryclark@google.com1eeaf0b2011-06-22 13:19:43 +000026 #if TARGET_RT_64_BIT || defined(SK_USE_MAC_CORE_TEXT)
reed@android.comfeda2f92010-05-19 13:47:05 +000027 #define SK_USE_CORETEXT 1
28 #else
29 #define SK_USE_CORETEXT 0
30 #endif
reed@android.com04225dc2009-03-20 04:59:37 +000031#endif
reed@android.com0bf64d42009-03-09 17:22:22 +000032
reed@android.comfeda2f92010-05-19 13:47:05 +000033#if SK_USE_CORETEXT
34 #include "SkFontHost_mac_coretext.cpp"
35#else
36 #include "SkFontHost_mac_atsui.cpp"
37#endif
reed@android.com0bf64d42009-03-09 17:22:22 +000038
reed@android.comd6638e62009-04-08 05:03:52 +000039