| OLD | NEW |
| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 const 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; } |
| 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; } |
| 85 int GetTypeDescent() const { return m_Descent; } | 85 int GetTypeDescent() const { return m_Descent; } |
| 86 int GetItalicAngle() const { return m_ItalicAngle; } | 86 int GetItalicAngle() const { return m_ItalicAngle; } |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 FX_BOOL m_bToUnicodeLoaded; | 119 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_ |
| OLD | NEW |