| 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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 int32_t GetInt32(FT_Bytes& p) const { | 337 int32_t GetInt32(FT_Bytes& p) const { |
| 338 uint32_t ret = p[0] << 24 | p[1] << 16 | p[2] << 8 | p[3]; | 338 uint32_t ret = p[0] << 24 | p[1] << 16 | p[2] << 8 | p[3]; |
| 339 p += 4; | 339 p += 4; |
| 340 return *(int32_t*)&ret; | 340 return *(int32_t*)&ret; |
| 341 } | 341 } |
| 342 uint32_t GetUInt32(FT_Bytes& p) const { | 342 uint32_t GetUInt32(FT_Bytes& p) const { |
| 343 uint32_t ret = p[0] << 24 | p[1] << 16 | p[2] << 8 | p[3]; | 343 uint32_t ret = p[0] << 24 | p[1] << 16 | p[2] << 8 | p[3]; |
| 344 p += 4; | 344 p += 4; |
| 345 return ret; | 345 return ret; |
| 346 } | 346 } |
| 347 std::map<FX_DWORD, FX_DWORD> m_featureMap; | 347 std::map<uint32_t, uint32_t> m_featureMap; |
| 348 FX_BOOL m_bFeautureMapLoad; | 348 FX_BOOL m_bFeautureMapLoad; |
| 349 bool loaded; | 349 bool loaded; |
| 350 struct tt_gsub_header header; | 350 struct tt_gsub_header header; |
| 351 struct TScriptList ScriptList; | 351 struct TScriptList ScriptList; |
| 352 struct TFeatureList FeatureList; | 352 struct TFeatureList FeatureList; |
| 353 struct TLookupList LookupList; | 353 struct TLookupList LookupList; |
| 354 }; | 354 }; |
| 355 class CFX_GSUBTable final : public IFX_GSUBTable { | 355 class CFX_GSUBTable final : public IFX_GSUBTable { |
| 356 public: | 356 public: |
| 357 ~CFX_GSUBTable() override {} | 357 ~CFX_GSUBTable() override {} |
| 358 FX_BOOL GetVerticalGlyph(FX_DWORD glyphnum, FX_DWORD* vglyphnum) override; | 358 FX_BOOL GetVerticalGlyph(uint32_t glyphnum, uint32_t* vglyphnum) override; |
| 359 | 359 |
| 360 CFX_CTTGSUBTable m_GsubImp; | 360 CFX_CTTGSUBTable m_GsubImp; |
| 361 }; | 361 }; |
| 362 | 362 |
| 363 #endif // CORE_FPDFAPI_FPDF_FONT_TTGSUBTABLE_H_ | 363 #endif // CORE_FPDFAPI_FPDF_FONT_TTGSUBTABLE_H_ |
| OLD | NEW |