OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef CORE_SRC_FXGE_APPLE_APPLE_INT_H_ | 7 #ifndef CORE_SRC_FXGE_APPLE_APPLE_INT_H_ |
8 #define CORE_SRC_FXGE_APPLE_APPLE_INT_H_ | 8 #define CORE_SRC_FXGE_APPLE_APPLE_INT_H_ |
9 | 9 |
10 #if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ | 10 #if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ |
(...skipping 22 matching lines...) Expand all Loading... |
33 eFXFontCharsetBALTIC = 1 << 13, | 33 eFXFontCharsetBALTIC = 1 << 13, |
34 } FX_IOSCHARSET; | 34 } FX_IOSCHARSET; |
35 FX_IOSCHARSET FX_GetiOSCharset(int charset); | 35 FX_IOSCHARSET FX_GetiOSCharset(int charset); |
36 typedef enum eFXIOSFONTFLAG { | 36 typedef enum eFXIOSFONTFLAG { |
37 eFXFontFlagBold = 1, | 37 eFXFontFlagBold = 1, |
38 eFXFontFlagItalic = 1 << 1, | 38 eFXFontFlagItalic = 1 << 1, |
39 eFXFontFlagFixedPitch = 1 << 2, | 39 eFXFontFlagFixedPitch = 1 << 2, |
40 eFXFontFlagSerif = 1 << 3, | 40 eFXFontFlagSerif = 1 << 3, |
41 eFXFontFlagScript = 1 << 4, | 41 eFXFontFlagScript = 1 << 4, |
42 } FX_IOSFONTFLAG; | 42 } FX_IOSFONTFLAG; |
43 typedef struct _IOS_FONTDATA { | 43 typedef struct IOS_FONTDATA_ { |
44 FX_DWORD nHashCode; | 44 FX_DWORD nHashCode; |
45 const char* psName; | 45 const char* psName; |
46 FX_DWORD charsets; | 46 FX_DWORD charsets; |
47 FX_DWORD styles; | 47 FX_DWORD styles; |
48 } IOS_FONTDATA; | 48 } IOS_FONTDATA; |
49 class CQuartz2D { | 49 class CQuartz2D { |
50 public: | 50 public: |
51 void* createGraphics(CFX_DIBitmap* bitmap); | 51 void* createGraphics(CFX_DIBitmap* bitmap); |
52 void destroyGraphics(void* graphics); | 52 void destroyGraphics(void* graphics); |
53 | 53 |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 int _totalSize; | 260 int _totalSize; |
261 }; | 261 }; |
262 | 262 |
263 uint32_t FX_GetHashCode(const FX_CHAR* pStr); | 263 uint32_t FX_GetHashCode(const FX_CHAR* pStr); |
264 FX_DWORD FX_IOSGetMatchFamilyNameHashcode(const FX_CHAR* pFontName); | 264 FX_DWORD FX_IOSGetMatchFamilyNameHashcode(const FX_CHAR* pFontName); |
265 uint32_t FX_IOSGetFamilyNamesCount(); | 265 uint32_t FX_IOSGetFamilyNamesCount(); |
266 const FX_CHAR* FX_IOSGetFamilyName(uint32_t uIndex); | 266 const FX_CHAR* FX_IOSGetFamilyName(uint32_t uIndex); |
267 #endif | 267 #endif |
268 | 268 |
269 #endif // CORE_SRC_FXGE_APPLE_APPLE_INT_H_ | 269 #endif // CORE_SRC_FXGE_APPLE_APPLE_INT_H_ |
OLD | NEW |