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

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

Issue 2368693002: Remove FX_BOOL from cpdf_font (Closed)
Patch Set: And again 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
OLDNEW
1 // Copyright 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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_CPDF_CIDFONT_H_ 7 #ifndef CORE_FPDFAPI_FPDF_FONT_CPDF_CIDFONT_H_
8 #define CORE_FPDFAPI_FPDF_FONT_CPDF_CIDFONT_H_ 8 #define CORE_FPDFAPI_FPDF_FONT_CPDF_CIDFONT_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 CPDF_CIDFont* AsCIDFont() override; 42 CPDF_CIDFont* AsCIDFont() override;
43 int GlyphFromCharCode(uint32_t charcode, bool* pVertGlyph) override; 43 int GlyphFromCharCode(uint32_t charcode, bool* pVertGlyph) override;
44 int GetCharWidthF(uint32_t charcode, int level = 0) override; 44 int GetCharWidthF(uint32_t charcode, int level = 0) override;
45 FX_RECT GetCharBBox(uint32_t charcode, int level = 0) override; 45 FX_RECT GetCharBBox(uint32_t charcode, int level = 0) override;
46 uint32_t GetNextChar(const FX_CHAR* pString, 46 uint32_t GetNextChar(const FX_CHAR* pString,
47 int nStrLen, 47 int nStrLen,
48 int& offset) const override; 48 int& offset) const override;
49 int CountChar(const FX_CHAR* pString, int size) const override; 49 int CountChar(const FX_CHAR* pString, int size) const override;
50 int AppendChar(FX_CHAR* str, uint32_t charcode) const override; 50 int AppendChar(FX_CHAR* str, uint32_t charcode) const override;
51 int GetCharSize(uint32_t charcode) const override; 51 int GetCharSize(uint32_t charcode) const override;
52 FX_BOOL IsVertWriting() const override; 52 bool IsVertWriting() const override;
53 FX_BOOL IsUnicodeCompatible() const override; 53 bool IsUnicodeCompatible() const override;
54 FX_BOOL Load() override; 54 bool Load() override;
55 CFX_WideString UnicodeFromCharCode(uint32_t charcode) const override; 55 CFX_WideString UnicodeFromCharCode(uint32_t charcode) const override;
56 uint32_t CharCodeFromUnicode(FX_WCHAR Unicode) const override; 56 uint32_t CharCodeFromUnicode(FX_WCHAR Unicode) const override;
57 57
58 uint16_t CIDFromCharCode(uint32_t charcode) const; 58 uint16_t CIDFromCharCode(uint32_t charcode) const;
59 const uint8_t* GetCIDTransform(uint16_t CID) const; 59 const uint8_t* GetCIDTransform(uint16_t CID) const;
60 short GetVertWidth(uint16_t CID) const; 60 short GetVertWidth(uint16_t CID) const;
61 void GetVertOrigin(uint16_t CID, short& vx, short& vy) const; 61 void GetVertOrigin(uint16_t CID, short& vx, short& vy) const;
62 62
63 protected: 63 protected:
64 void LoadGB2312(); 64 void LoadGB2312();
(...skipping 17 matching lines...) Expand all
82 FX_RECT m_CharBBox[256]; 82 FX_RECT m_CharBBox[256];
83 CFX_ArrayTemplate<uint32_t> m_WidthList; 83 CFX_ArrayTemplate<uint32_t> m_WidthList;
84 short m_DefaultVY; 84 short m_DefaultVY;
85 short m_DefaultW1; 85 short m_DefaultW1;
86 CFX_ArrayTemplate<uint32_t> m_VertMetrics; 86 CFX_ArrayTemplate<uint32_t> m_VertMetrics;
87 bool m_bAdobeCourierStd; 87 bool m_bAdobeCourierStd;
88 std::unique_ptr<CFX_CTTGSUBTable> m_pTTGSUBTable; 88 std::unique_ptr<CFX_CTTGSUBTable> m_pTTGSUBTable;
89 }; 89 };
90 90
91 #endif // CORE_FPDFAPI_FPDF_FONT_CPDF_CIDFONT_H_ 91 #endif // CORE_FPDFAPI_FPDF_FONT_CPDF_CIDFONT_H_
OLDNEW
« no previous file with comments | « no previous file | core/fpdfapi/fpdf_font/cpdf_cidfont.cpp » ('j') | core/fpdfapi/fpdf_font/fpdf_font_cid.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698