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_FXGE_ANDROID_CFPF_SKIAFILEFONT_H_ 8 #define CORE_FXGE_ANDROID_CFPF_SKIAFILEFONT_H_ 9 10 #include "core/fxcrt/cfx_retain_ptr.h" 11 #include "core/fxge/android/cfpf_skiafontdescriptor.h" 12 13 class IFX_SeekableReadStream; 14 15 #define FPF_SKIAFONTTYPE_File 2 16 17 class CFPF_SkiaFileFont : public CFPF_SkiaFontDescriptor { 18 public: CFPF_SkiaFileFont()19 CFPF_SkiaFileFont() {} 20 21 // CFPF_SkiaFontDescriptor GetType()22 int32_t GetType() const override { return FPF_SKIAFONTTYPE_File; } 23 24 CFX_RetainPtr<IFX_SeekableReadStream> m_pFile; 25 }; 26 27 #endif // CORE_FXGE_ANDROID_CFPF_SKIAFILEFONT_H_ 28