| 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_CPDF_TYPE1FONT_H_ | 7 #ifndef CORE_FPDFAPI_FPDF_FONT_CPDF_TYPE1FONT_H_ |
| 8 #define CORE_FPDFAPI_FPDF_FONT_CPDF_TYPE1FONT_H_ | 8 #define CORE_FPDFAPI_FPDF_FONT_CPDF_TYPE1FONT_H_ |
| 9 | 9 |
| 10 #include "core/fpdfapi/fpdf_font/cpdf_simplefont.h" | 10 #include "core/fpdfapi/fpdf_font/cpdf_simplefont.h" |
| 11 #include "core/fxcrt/include/fx_system.h" | 11 #include "core/fxcrt/include/fx_system.h" |
| 12 | 12 |
| 13 class CPDF_Type1Font : public CPDF_SimpleFont { | 13 class CPDF_Type1Font : public CPDF_SimpleFont { |
| 14 public: | 14 public: |
| 15 CPDF_Type1Font(); | 15 CPDF_Type1Font(); |
| 16 | 16 |
| 17 // CPDF_Font: | 17 // CPDF_Font: |
| 18 bool IsType1Font() const override; | 18 bool IsType1Font() const override; |
| 19 const CPDF_Type1Font* AsType1Font() const override; | 19 const CPDF_Type1Font* AsType1Font() const override; |
| 20 CPDF_Type1Font* AsType1Font() override; | 20 CPDF_Type1Font* AsType1Font() override; |
| 21 int GlyphFromCharCodeExt(FX_DWORD charcode) override; | 21 int GlyphFromCharCodeExt(uint32_t charcode) override; |
| 22 | 22 |
| 23 int GetBase14Font() const { return m_Base14Font; } | 23 int GetBase14Font() const { return m_Base14Font; } |
| 24 | 24 |
| 25 protected: | 25 protected: |
| 26 // CPDF_Font: | 26 // CPDF_Font: |
| 27 FX_BOOL Load() override; | 27 FX_BOOL Load() override; |
| 28 | 28 |
| 29 // CPDF_SimpleFont: | 29 // CPDF_SimpleFont: |
| 30 void LoadGlyphMap() override; | 30 void LoadGlyphMap() override; |
| 31 | 31 |
| 32 int m_Base14Font; | 32 int m_Base14Font; |
| 33 }; | 33 }; |
| 34 | 34 |
| 35 #endif // CORE_FPDFAPI_FPDF_FONT_CPDF_TYPE1FONT_H_ | 35 #endif // CORE_FPDFAPI_FPDF_FONT_CPDF_TYPE1FONT_H_ |
| OLD | NEW |