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

Side by Side Diff: core/fpdfapi/fpdf_font/include/cpdf_font.h

Issue 2053483002: Remove even more const casting from core. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Fix non-xfa build. Created 4 years, 6 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 | « no previous file | core/fpdfdoc/doc_form.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 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_INCLUDE_CPDF_FONT_H_ 7 #ifndef CORE_FPDFAPI_FPDF_FONT_INCLUDE_CPDF_FONT_H_
8 #define CORE_FPDFAPI_FPDF_FONT_INCLUDE_CPDF_FONT_H_ 8 #define CORE_FPDFAPI_FPDF_FONT_INCLUDE_CPDF_FONT_H_
9 9
10 #include "core/fxcrt/include/fx_string.h" 10 #include "core/fxcrt/include/fx_string.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 virtual int CountChar(const FX_CHAR* pString, int size) const; 64 virtual int CountChar(const FX_CHAR* pString, int size) const;
65 virtual int AppendChar(FX_CHAR* buf, uint32_t charcode) const; 65 virtual int AppendChar(FX_CHAR* buf, uint32_t charcode) const;
66 virtual int GetCharSize(uint32_t charcode) const; 66 virtual int GetCharSize(uint32_t charcode) const;
67 virtual int GlyphFromCharCode(uint32_t charcode, 67 virtual int GlyphFromCharCode(uint32_t charcode,
68 FX_BOOL* pVertGlyph = nullptr); 68 FX_BOOL* pVertGlyph = nullptr);
69 virtual int GlyphFromCharCodeExt(uint32_t charcode); 69 virtual int GlyphFromCharCodeExt(uint32_t charcode);
70 virtual CFX_WideString UnicodeFromCharCode(uint32_t charcode) const; 70 virtual CFX_WideString UnicodeFromCharCode(uint32_t charcode) const;
71 virtual uint32_t CharCodeFromUnicode(FX_WCHAR Unicode) const; 71 virtual uint32_t CharCodeFromUnicode(FX_WCHAR Unicode) const;
72 72
73 const CFX_ByteString& GetBaseFont() const { return m_BaseFont; } 73 const CFX_ByteString& GetBaseFont() const { return m_BaseFont; }
74 const CFX_SubstFont* GetSubstFont() const { return m_Font.GetSubstFont(); } 74 CFX_SubstFont* GetSubstFont() const { return m_Font.GetSubstFont(); }
75 uint32_t GetFlags() const { return m_Flags; } 75 uint32_t GetFlags() const { return m_Flags; }
76 FX_BOOL IsEmbedded() const { return IsType3Font() || m_pFontFile != nullptr; } 76 FX_BOOL IsEmbedded() const { return IsType3Font() || m_pFontFile != nullptr; }
77 CPDF_StreamAcc* GetFontFile() const { return m_pFontFile; } 77 CPDF_StreamAcc* GetFontFile() const { return m_pFontFile; }
78 CPDF_Dictionary* GetFontDict() const { return m_pFontDict; } 78 CPDF_Dictionary* GetFontDict() const { return m_pFontDict; }
79 FX_BOOL IsStandardFont() const; 79 FX_BOOL IsStandardFont() const;
80 FXFT_Face GetFace() const { return m_Font.GetFace(); } 80 FXFT_Face GetFace() const { return m_Font.GetFace(); }
81 void AppendChar(CFX_ByteString& str, uint32_t charcode) const; 81 void AppendChar(CFX_ByteString& str, uint32_t charcode) const;
82 82
83 void GetFontBBox(FX_RECT& rect) const { rect = m_FontBBox; } 83 void GetFontBBox(FX_RECT& rect) const { rect = m_FontBBox; }
84 int GetTypeAscent() const { return m_Ascent; } 84 int GetTypeAscent() const { return m_Ascent; }
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 mutable FX_BOOL m_bToUnicodeLoaded; 119 mutable FX_BOOL m_bToUnicodeLoaded;
120 int m_Flags; 120 int m_Flags;
121 FX_RECT m_FontBBox; 121 FX_RECT m_FontBBox;
122 int m_StemV; 122 int m_StemV;
123 int m_Ascent; 123 int m_Ascent;
124 int m_Descent; 124 int m_Descent;
125 int m_ItalicAngle; 125 int m_ItalicAngle;
126 }; 126 };
127 127
128 #endif // CORE_FPDFAPI_FPDF_FONT_INCLUDE_CPDF_FONT_H_ 128 #endif // CORE_FPDFAPI_FPDF_FONT_INCLUDE_CPDF_FONT_H_
OLDNEW
« no previous file with comments | « no previous file | core/fpdfdoc/doc_form.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698