Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Side by Side Diff: core/fpdfapi/fpdf_font/ttgsubtable.h

Issue 1832173003: Remove FX_DWORD from core/ and delete definition (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_font/include/cpdf_fontencoding.h ('k') | core/fpdfapi/fpdf_font/ttgsubtable.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698