OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 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_INCLUDE_FXGE_FPF_H_ | 7 #ifndef CORE_INCLUDE_FXGE_FPF_H_ |
8 #define CORE_INCLUDE_FXGE_FPF_H_ | 8 #define CORE_INCLUDE_FXGE_FPF_H_ |
9 | 9 |
10 #include "../fxcrt/fx_coordinates.h" | 10 #include "../fxcrt/fx_coordinates.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 virtual CFX_WideString GetPsName() = 0; | 34 virtual CFX_WideString GetPsName() = 0; |
35 virtual FX_DWORD GetFontStyle() const = 0; | 35 virtual FX_DWORD GetFontStyle() const = 0; |
36 virtual uint8_t GetCharset() const = 0; | 36 virtual uint8_t GetCharset() const = 0; |
37 | 37 |
38 virtual int32_t GetGlyphIndex(FX_WCHAR wUnicode) = 0; | 38 virtual int32_t GetGlyphIndex(FX_WCHAR wUnicode) = 0; |
39 virtual int32_t GetGlyphWidth(int32_t iGlyphIndex) = 0; | 39 virtual int32_t GetGlyphWidth(int32_t iGlyphIndex) = 0; |
40 | 40 |
41 virtual int32_t GetAscent() const = 0; | 41 virtual int32_t GetAscent() const = 0; |
42 virtual int32_t GetDescent() const = 0; | 42 virtual int32_t GetDescent() const = 0; |
43 | 43 |
44 virtual FX_BOOL» » » GetGlyphBBox(int32_t iGlyphIndex, FX_REC
T &rtBBox) = 0; | 44 virtual bool» » » GetGlyphBBox(int32_t iGlyphIndex, FX_REC
T &rtBBox) = 0; |
45 virtual FX_BOOL» » » GetBBox(FX_RECT &rtBBox) = 0; | 45 virtual bool» » » GetBBox(FX_RECT &rtBBox) = 0; |
46 | 46 |
47 virtual int32_t GetHeight() const = 0; | 47 virtual int32_t GetHeight() const = 0; |
48 virtual int32_t GetItalicAngle() const = 0; | 48 virtual int32_t GetItalicAngle() const = 0; |
49 virtual FX_DWORD GetFontData(FX_DWORD dwTable, uint8_t* pBuffer,
FX_DWORD dwSize) = 0; | 49 virtual FX_DWORD GetFontData(FX_DWORD dwTable, uint8_t* pBuffer,
FX_DWORD dwSize) = 0; |
50 | 50 |
51 protected: | 51 protected: |
52 ~IFPF_Font() { } | 52 ~IFPF_Font() { } |
53 }; | 53 }; |
54 class IFPF_FontMgr | 54 class IFPF_FontMgr |
55 { | 55 { |
56 public: | 56 public: |
57 virtual ~IFPF_FontMgr() { } | 57 virtual ~IFPF_FontMgr() { } |
58 virtual void LoadSystemFonts() = 0; | 58 virtual void LoadSystemFonts() = 0; |
59 virtual void LoadPrivateFont(IFX_FileRead* pFontFile)
= 0; | 59 virtual void LoadPrivateFont(IFX_FileRead* pFontFile)
= 0; |
60 virtual void LoadPrivateFont(const CFX_ByteStringC& b
sFileName) = 0; | 60 virtual void LoadPrivateFont(const CFX_ByteStringC& b
sFileName) = 0; |
61 virtual void LoadPrivateFont(void* pBuffer, size_t sz
Buffer) = 0; | 61 virtual void LoadPrivateFont(void* pBuffer, size_t sz
Buffer) = 0; |
62 | 62 |
63 virtual IFPF_Font* CreateFont(const CFX_ByteStringC& bsFamilyname,
uint8_t charset, FX_DWORD dwStyle, FX_DWORD dwMatch = 0) = 0; | 63 virtual IFPF_Font* CreateFont(const CFX_ByteStringC& bsFamilyname,
uint8_t charset, FX_DWORD dwStyle, FX_DWORD dwMatch = 0) = 0; |
64 }; | 64 }; |
65 | 65 |
66 #endif // CORE_INCLUDE_FXGE_FPF_H_ | 66 #endif // CORE_INCLUDE_FXGE_FPF_H_ |
OLD | NEW |