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_FPDFAPI_FPDF_FONT_TTGSUBTABLE_H_ | 7 #ifndef CORE_FPDFAPI_FPDF_FONT_TTGSUBTABLE_H_ |
8 #define CORE_FPDFAPI_FPDF_FONT_TTGSUBTABLE_H_ | 8 #define CORE_FPDFAPI_FPDF_FONT_TTGSUBTABLE_H_ |
9 | 9 |
10 #include <stdint.h> | 10 #include <stdint.h> |
(...skipping 15 matching lines...) Expand all Loading... |
26 protected: | 26 protected: |
27 CFX_BinaryBuf m_Buffer; | 27 CFX_BinaryBuf m_Buffer; |
28 }; | 28 }; |
29 | 29 |
30 class CFX_CTTGSUBTable { | 30 class CFX_CTTGSUBTable { |
31 public: | 31 public: |
32 CFX_CTTGSUBTable(); | 32 CFX_CTTGSUBTable(); |
33 explicit CFX_CTTGSUBTable(FT_Bytes gsub); | 33 explicit CFX_CTTGSUBTable(FT_Bytes gsub); |
34 virtual ~CFX_CTTGSUBTable(); | 34 virtual ~CFX_CTTGSUBTable(); |
35 | 35 |
36 bool IsOk(void) const; | 36 bool IsOk() const; |
37 bool LoadGSUBTable(FT_Bytes gsub); | 37 bool LoadGSUBTable(FT_Bytes gsub); |
38 bool GetVerticalGlyph(uint32_t glyphnum, uint32_t* vglyphnum); | 38 bool GetVerticalGlyph(uint32_t glyphnum, uint32_t* vglyphnum); |
39 | 39 |
40 private: | 40 private: |
41 struct tt_gsub_header { | 41 struct tt_gsub_header { |
42 uint32_t Version; | 42 uint32_t Version; |
43 uint16_t ScriptList; | 43 uint16_t ScriptList; |
44 uint16_t FeatureList; | 44 uint16_t FeatureList; |
45 uint16_t LookupList; | 45 uint16_t LookupList; |
46 }; | 46 }; |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 std::map<uint32_t, uint32_t> m_featureMap; | 338 std::map<uint32_t, uint32_t> m_featureMap; |
339 FX_BOOL m_bFeautureMapLoad; | 339 FX_BOOL m_bFeautureMapLoad; |
340 bool loaded; | 340 bool loaded; |
341 struct tt_gsub_header header; | 341 struct tt_gsub_header header; |
342 struct TScriptList ScriptList; | 342 struct TScriptList ScriptList; |
343 struct TFeatureList FeatureList; | 343 struct TFeatureList FeatureList; |
344 struct TLookupList LookupList; | 344 struct TLookupList LookupList; |
345 }; | 345 }; |
346 | 346 |
347 #endif // CORE_FPDFAPI_FPDF_FONT_TTGSUBTABLE_H_ | 347 #endif // CORE_FPDFAPI_FPDF_FONT_TTGSUBTABLE_H_ |
OLD | NEW |