| 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_FPDFAPI_FPDF_FONT_TTGSUBTABLE_H_ | 7 #ifndef CORE_SRC_FPDFAPI_FPDF_FONT_TTGSUBTABLE_H_ |
| 8 #define CORE_SRC_FPDFAPI_FPDF_FONT_TTGSUBTABLE_H_ | 8 #define CORE_SRC_FPDFAPI_FPDF_FONT_TTGSUBTABLE_H_ |
| 9 | 9 |
| 10 #include <stdint.h> | 10 #include <stdint.h> |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 TSingleSubstFormat1(const TSingleSubstFormat1&); | 253 TSingleSubstFormat1(const TSingleSubstFormat1&); |
| 254 TSingleSubstFormat1& operator=(const TSingleSubstFormat1&); | 254 TSingleSubstFormat1& operator=(const TSingleSubstFormat1&); |
| 255 }; | 255 }; |
| 256 struct TSingleSubstFormat2 : public TSubTableBase { | 256 struct TSingleSubstFormat2 : public TSubTableBase { |
| 257 TCoverageFormatBase* Coverage; | 257 TCoverageFormatBase* Coverage; |
| 258 uint16_t GlyphCount; | 258 uint16_t GlyphCount; |
| 259 uint16_t* Substitute; | 259 uint16_t* Substitute; |
| 260 TSingleSubstFormat2() : Coverage(NULL), GlyphCount(0), Substitute(NULL) { | 260 TSingleSubstFormat2() : Coverage(NULL), GlyphCount(0), Substitute(NULL) { |
| 261 SubstFormat = 2; | 261 SubstFormat = 2; |
| 262 } | 262 } |
| 263 ~TSingleSubstFormat2() { | 263 ~TSingleSubstFormat2() override { |
| 264 delete Coverage; | 264 delete Coverage; |
| 265 delete[] Substitute; | 265 delete[] Substitute; |
| 266 } | 266 } |
| 267 | 267 |
| 268 private: | 268 private: |
| 269 TSingleSubstFormat2(const TSingleSubstFormat2&); | 269 TSingleSubstFormat2(const TSingleSubstFormat2&); |
| 270 TSingleSubstFormat2& operator=(const TSingleSubstFormat2&); | 270 TSingleSubstFormat2& operator=(const TSingleSubstFormat2&); |
| 271 }; | 271 }; |
| 272 struct TLookup { | 272 struct TLookup { |
| 273 uint16_t LookupType; | 273 uint16_t LookupType; |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 FX_BOOL m_bFeautureMapLoad; | 349 FX_BOOL m_bFeautureMapLoad; |
| 350 bool loaded; | 350 bool loaded; |
| 351 struct tt_gsub_header header; | 351 struct tt_gsub_header header; |
| 352 struct TScriptList ScriptList; | 352 struct TScriptList ScriptList; |
| 353 struct TFeatureList FeatureList; | 353 struct TFeatureList FeatureList; |
| 354 struct TLookupList LookupList; | 354 struct TLookupList LookupList; |
| 355 }; | 355 }; |
| 356 class CFX_GSUBTable final : public IFX_GSUBTable { | 356 class CFX_GSUBTable final : public IFX_GSUBTable { |
| 357 public: | 357 public: |
| 358 ~CFX_GSUBTable() override {} | 358 ~CFX_GSUBTable() override {} |
| 359 virtual FX_BOOL GetVerticalGlyph(FX_DWORD glyphnum, | 359 FX_BOOL GetVerticalGlyph(FX_DWORD glyphnum, FX_DWORD* vglyphnum) override; |
| 360 FX_DWORD* vglyphnum) override; | |
| 361 | 360 |
| 362 CFX_CTTGSUBTable m_GsubImp; | 361 CFX_CTTGSUBTable m_GsubImp; |
| 363 }; | 362 }; |
| 364 | 363 |
| 365 #endif // CORE_SRC_FPDFAPI_FPDF_FONT_TTGSUBTABLE_H_ | 364 #endif // CORE_SRC_FPDFAPI_FPDF_FONT_TTGSUBTABLE_H_ |
| OLD | NEW |