1 // Copyright 2016 PDFium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6 7 #ifndef CORE_FPDFAPI_FONT_CPDF_TRUETYPEFONT_H_ 8 #define CORE_FPDFAPI_FONT_CPDF_TRUETYPEFONT_H_ 9 10 #include "core/fpdfapi/font/cpdf_simplefont.h" 11 #include "core/fxcrt/fx_system.h" 12 13 class CPDF_TrueTypeFont : public CPDF_SimpleFont { 14 public: 15 CPDF_TrueTypeFont(); 16 17 // CPDF_Font: 18 bool IsTrueTypeFont() const override; 19 const CPDF_TrueTypeFont* AsTrueTypeFont() const override; 20 CPDF_TrueTypeFont* AsTrueTypeFont() override; 21 22 protected: 23 // CPDF_Font: 24 bool Load() override; 25 26 // CPDF_SimpleFont: 27 void LoadGlyphMap() override; 28 }; 29 30 #endif // CORE_FPDFAPI_FONT_CPDF_TRUETYPEFONT_H_ 31