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

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

Issue 2395803002: Remove FX_BOOL from core/fpdfapi/font (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « core/fpdfapi/font/cpdf_type3char.cpp ('k') | core/fpdfapi/font/ttgsubtable.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_FONT_TTGSUBTABLE_H_ 7 #ifndef CORE_FPDFAPI_FONT_TTGSUBTABLE_H_
8 #define CORE_FPDFAPI_FONT_TTGSUBTABLE_H_ 8 #define CORE_FPDFAPI_FONT_TTGSUBTABLE_H_
9 9
10 #include <stdint.h> 10 #include <stdint.h>
11 11
12 #include <map> 12 #include <map>
13 #include <memory> 13 #include <memory>
14 14
15 #include "core/fxcrt/fx_basic.h" 15 #include "core/fxcrt/fx_basic.h"
16 #include "core/fxge/fx_font.h" 16 #include "core/fxge/fx_font.h"
17 #include "core/fxge/fx_freetype.h" 17 #include "core/fxge/fx_freetype.h"
18 18
19 class CFX_GlyphMap { 19 class CFX_GlyphMap {
20 public: 20 public:
21 CFX_GlyphMap(); 21 CFX_GlyphMap();
22 ~CFX_GlyphMap(); 22 ~CFX_GlyphMap();
23 23
24 void SetAt(int key, int value); 24 void SetAt(int key, int value);
25 FX_BOOL Lookup(int key, int& value); 25 bool Lookup(int key, int& value);
26 26
27 protected: 27 protected:
28 CFX_BinaryBuf m_Buffer; 28 CFX_BinaryBuf m_Buffer;
29 }; 29 };
30 30
31 class CFX_CTTGSUBTable { 31 class CFX_CTTGSUBTable {
32 public: 32 public:
33 CFX_CTTGSUBTable(); 33 CFX_CTTGSUBTable();
34 explicit CFX_CTTGSUBTable(FT_Bytes gsub); 34 explicit CFX_CTTGSUBTable(FT_Bytes gsub);
35 virtual ~CFX_CTTGSUBTable(); 35 virtual ~CFX_CTTGSUBTable();
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 TLookup* Lookup) const; 283 TLookup* Lookup) const;
284 int GetCoverageIndex(TCoverageFormatBase* Coverage, uint32_t g) const; 284 int GetCoverageIndex(TCoverageFormatBase* Coverage, uint32_t g) const;
285 285
286 uint8_t GetUInt8(FT_Bytes& p) const; 286 uint8_t GetUInt8(FT_Bytes& p) const;
287 int16_t GetInt16(FT_Bytes& p) const; 287 int16_t GetInt16(FT_Bytes& p) const;
288 uint16_t GetUInt16(FT_Bytes& p) const; 288 uint16_t GetUInt16(FT_Bytes& p) const;
289 int32_t GetInt32(FT_Bytes& p) const; 289 int32_t GetInt32(FT_Bytes& p) const;
290 uint32_t GetUInt32(FT_Bytes& p) const; 290 uint32_t GetUInt32(FT_Bytes& p) const;
291 291
292 std::map<uint32_t, uint32_t> m_featureMap; 292 std::map<uint32_t, uint32_t> m_featureMap;
293 FX_BOOL m_bFeautureMapLoad; 293 bool m_bFeautureMapLoad;
294 bool loaded; 294 bool loaded;
295 tt_gsub_header header; 295 tt_gsub_header header;
296 TScriptList ScriptList; 296 TScriptList ScriptList;
297 TFeatureList FeatureList; 297 TFeatureList FeatureList;
298 TLookupList LookupList; 298 TLookupList LookupList;
299 }; 299 };
300 300
301 #endif // CORE_FPDFAPI_FONT_TTGSUBTABLE_H_ 301 #endif // CORE_FPDFAPI_FONT_TTGSUBTABLE_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/font/cpdf_type3char.cpp ('k') | core/fpdfapi/font/ttgsubtable.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698