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_CFX_FONTMAPPER_H_ | 7 #ifndef CORE_FXGE_CFX_FONTMAPPER_H_ |
8 #define CORE_FXGE_CFX_FONTMAPPER_H_ | 8 #define CORE_FXGE_CFX_FONTMAPPER_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 27 matching lines...) Expand all Loading... | |
38 int weight, | 38 int weight, |
39 int italic_angle); | 39 int italic_angle); |
40 #endif // PDF_ENABLE_XFA | 40 #endif // PDF_ENABLE_XFA |
41 FX_BOOL IsBuiltinFace(const FXFT_Face face) const; | 41 FX_BOOL IsBuiltinFace(const FXFT_Face face) const; |
42 int GetFaceSize() const; | 42 int GetFaceSize() const; |
43 CFX_ByteString GetFaceName(int index) const { | 43 CFX_ByteString GetFaceName(int index) const { |
44 return m_FaceArray[index].name; | 44 return m_FaceArray[index].name; |
45 } | 45 } |
46 | 46 |
47 std::vector<CFX_ByteString> m_InstalledTTFonts; | 47 std::vector<CFX_ByteString> m_InstalledTTFonts; |
48 std::vector<CFX_ByteString> m_LocalizedTTFonts; | |
Tom Sepez
2016/10/05 22:34:11
are we sure we don't just want
std::vector<std:
| |
49 std::vector<int> m_IndexForLocalizedFonts; | |
48 | 50 |
49 private: | 51 private: |
50 static const size_t MM_FACE_COUNT = 2; | 52 static const size_t MM_FACE_COUNT = 2; |
51 static const size_t FOXIT_FACE_COUNT = 14; | 53 static const size_t FOXIT_FACE_COUNT = 14; |
52 | 54 |
53 CFX_ByteString GetPSNameFromTT(void* hFont); | 55 CFX_ByteString GetPSNameFromTT(void* hFont); |
54 CFX_ByteString MatchInstalledFonts(const CFX_ByteString& norm_name); | 56 CFX_ByteString MatchInstalledFonts(const CFX_ByteString& norm_name); |
55 FXFT_Face UseInternalSubst(CFX_SubstFont* pSubstFont, | 57 FXFT_Face UseInternalSubst(CFX_SubstFont* pSubstFont, |
56 int iBaseFont, | 58 int iBaseFont, |
57 int italic_angle, | 59 int italic_angle, |
(...skipping 17 matching lines...) Expand all Loading... | |
75 FX_BOOL m_bListLoaded; | 77 FX_BOOL m_bListLoaded; |
76 FXFT_Face m_MMFaces[MM_FACE_COUNT]; | 78 FXFT_Face m_MMFaces[MM_FACE_COUNT]; |
77 CFX_ByteString m_LastFamily; | 79 CFX_ByteString m_LastFamily; |
78 std::vector<FaceData> m_FaceArray; | 80 std::vector<FaceData> m_FaceArray; |
79 std::unique_ptr<IFX_SystemFontInfo> m_pFontInfo; | 81 std::unique_ptr<IFX_SystemFontInfo> m_pFontInfo; |
80 FXFT_Face m_FoxitFaces[FOXIT_FACE_COUNT]; | 82 FXFT_Face m_FoxitFaces[FOXIT_FACE_COUNT]; |
81 CFX_FontMgr* const m_pFontMgr; | 83 CFX_FontMgr* const m_pFontMgr; |
82 }; | 84 }; |
83 | 85 |
84 #endif // CORE_FXGE_CFX_FONTMAPPER_H_ | 86 #endif // CORE_FXGE_CFX_FONTMAPPER_H_ |
OLD | NEW |