OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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_FXGE_INCLUDE_IFX_SYSTEMFONTINFO_H_ | 7 #ifndef CORE_FXGE_IFX_SYSTEMFONTINFO_H_ |
8 #define CORE_FXGE_INCLUDE_IFX_SYSTEMFONTINFO_H_ | 8 #define CORE_FXGE_IFX_SYSTEMFONTINFO_H_ |
9 | 9 |
10 #include "core/fxge/include/cfx_fontmapper.h" | 10 #include "core/fxge/cfx_fontmapper.h" |
11 #include "core/fxge/include/fx_font.h" | 11 #include "core/fxge/fx_font.h" |
12 | 12 |
13 const uint32_t kTableNAME = FXDWORD_GET_MSBFIRST("name"); | 13 const uint32_t kTableNAME = FXDWORD_GET_MSBFIRST("name"); |
14 const uint32_t kTableTTCF = FXDWORD_GET_MSBFIRST("ttcf"); | 14 const uint32_t kTableTTCF = FXDWORD_GET_MSBFIRST("ttcf"); |
15 | 15 |
16 class IFX_SystemFontInfo { | 16 class IFX_SystemFontInfo { |
17 public: | 17 public: |
18 static std::unique_ptr<IFX_SystemFontInfo> CreateDefault( | 18 static std::unique_ptr<IFX_SystemFontInfo> CreateDefault( |
19 const char** pUserPaths); | 19 const char** pUserPaths); |
20 | 20 |
21 virtual ~IFX_SystemFontInfo() {} | 21 virtual ~IFX_SystemFontInfo() {} |
(...skipping 17 matching lines...) Expand all Loading... |
39 virtual uint32_t GetFontData(void* hFont, | 39 virtual uint32_t GetFontData(void* hFont, |
40 uint32_t table, | 40 uint32_t table, |
41 uint8_t* buffer, | 41 uint8_t* buffer, |
42 uint32_t size) = 0; | 42 uint32_t size) = 0; |
43 virtual FX_BOOL GetFaceName(void* hFont, CFX_ByteString& name) = 0; | 43 virtual FX_BOOL GetFaceName(void* hFont, CFX_ByteString& name) = 0; |
44 virtual FX_BOOL GetFontCharset(void* hFont, int& charset) = 0; | 44 virtual FX_BOOL GetFontCharset(void* hFont, int& charset) = 0; |
45 virtual int GetFaceIndex(void* hFont); | 45 virtual int GetFaceIndex(void* hFont); |
46 virtual void DeleteFont(void* hFont) = 0; | 46 virtual void DeleteFont(void* hFont) = 0; |
47 }; | 47 }; |
48 | 48 |
49 #endif // CORE_FXGE_INCLUDE_IFX_SYSTEMFONTINFO_H_ | 49 #endif // CORE_FXGE_IFX_SYSTEMFONTINFO_H_ |
OLD | NEW |