• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 
2 /*
3  * 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 
9 
10 
11 /*
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
26     #if TARGET_RT_64_BIT || defined(SK_USE_MAC_CORE_TEXT)
27         #define SK_USE_CORETEXT                                     1
28     #else
29         #define SK_USE_CORETEXT                                     0
30     #endif
31 #endif
32 
33 #if SK_USE_CORETEXT
34     #include "SkFontHost_mac_coretext.cpp"
35 #else
36     #include "SkFontHost_mac_atsui.cpp"
37 #endif
38 
39 
40