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_CFX_FONTMAPPER_H_ | 7 #ifndef CORE_FXGE_INCLUDE_CFX_FONTMAPPER_H_ |
8 #define CORE_FXGE_INCLUDE_CFX_FONTMAPPER_H_ | 8 #define CORE_FXGE_INCLUDE_CFX_FONTMAPPER_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
48 static const size_t MM_FACE_COUNT = 2; | 48 static const size_t MM_FACE_COUNT = 2; |
49 static const size_t FOXIT_FACE_COUNT = 14; | 49 static const size_t FOXIT_FACE_COUNT = 14; |
50 | 50 |
51 CFX_ByteString GetPSNameFromTT(void* hFont); | 51 CFX_ByteString GetPSNameFromTT(void* hFont); |
52 CFX_ByteString MatchInstalledFonts(const CFX_ByteString& norm_name); | 52 CFX_ByteString MatchInstalledFonts(const CFX_ByteString& norm_name); |
53 FXFT_Face UseInternalSubst(CFX_SubstFont* pSubstFont, | 53 FXFT_Face UseInternalSubst(CFX_SubstFont* pSubstFont, |
54 int iBaseFont, | 54 int iBaseFont, |
55 int italic_angle, | 55 int italic_angle, |
56 int weight, | 56 int weight, |
57 int picthfamily); | 57 int picthfamily); |
58 FXFT_Face GetCachedTTCFace(void* hFont, | |
59 const uint32_t tableTTCF, | |
60 uint32_t ttc_size, | |
61 uint32_t font_size); | |
62 | |
dsinclair
2016/08/11 19:09:12
nit: no blank line.
npm
2016/08/11 19:24:10
Done.
| |
63 FXFT_Face GetCachedFace(void* hFont, | |
64 CFX_ByteString SubstName, | |
65 int weight, | |
66 FX_BOOL bItalic, | |
67 uint32_t font_size); | |
58 | 68 |
59 struct FaceData { | 69 struct FaceData { |
60 CFX_ByteString name; | 70 CFX_ByteString name; |
61 uint32_t charset; | 71 uint32_t charset; |
62 }; | 72 }; |
63 | 73 |
64 FX_BOOL m_bListLoaded; | 74 FX_BOOL m_bListLoaded; |
65 FXFT_Face m_MMFaces[MM_FACE_COUNT]; | 75 FXFT_Face m_MMFaces[MM_FACE_COUNT]; |
66 CFX_ByteString m_LastFamily; | 76 CFX_ByteString m_LastFamily; |
67 std::vector<FaceData> m_FaceArray; | 77 std::vector<FaceData> m_FaceArray; |
68 std::unique_ptr<IFX_SystemFontInfo> m_pFontInfo; | 78 std::unique_ptr<IFX_SystemFontInfo> m_pFontInfo; |
69 FXFT_Face m_FoxitFaces[FOXIT_FACE_COUNT]; | 79 FXFT_Face m_FoxitFaces[FOXIT_FACE_COUNT]; |
70 CFX_FontMgr* const m_pFontMgr; | 80 CFX_FontMgr* const m_pFontMgr; |
71 }; | 81 }; |
72 | 82 |
73 #endif // CORE_FXGE_INCLUDE_CFX_FONTMAPPER_H_ | 83 #endif // CORE_FXGE_INCLUDE_CFX_FONTMAPPER_H_ |
OLD | NEW |