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 class IFPF_DeviceModule; | 10 class IFPF_DeviceModule; |
(...skipping 13 matching lines...) Expand all Loading... |
24 }* FPF_HFONT; | 24 }* FPF_HFONT; |
25 class IFPF_Font | 25 class IFPF_Font |
26 { | 26 { |
27 public: | 27 public: |
28 virtual void Release() = 0; | 28 virtual void Release() = 0; |
29 virtual IFPF_Font* Retain() = 0; | 29 virtual IFPF_Font* Retain() = 0; |
30 virtual FPF_HFONT GetHandle() = 0; | 30 virtual FPF_HFONT GetHandle() = 0; |
31 virtual CFX_ByteString GetFamilyName() = 0; | 31 virtual CFX_ByteString GetFamilyName() = 0; |
32 virtual CFX_WideString GetPsName() = 0; | 32 virtual CFX_WideString GetPsName() = 0; |
33 virtual FX_DWORD GetFontStyle() const = 0; | 33 virtual FX_DWORD GetFontStyle() const = 0; |
34 virtual FX_BYTE» » » GetCharset() const = 0; | 34 virtual uint8_t» » » GetCharset() const = 0; |
35 | 35 |
36 virtual FX_INT32» » GetGlyphIndex(FX_WCHAR wUnicode) = 0; | 36 virtual int32_t» » GetGlyphIndex(FX_WCHAR wUnicode) = 0; |
37 virtual FX_INT32» » GetGlyphWidth(FX_INT32 iGlyphIndex) = 0; | 37 virtual int32_t» » GetGlyphWidth(int32_t iGlyphIndex) = 0; |
38 | 38 |
39 virtual FX_INT32» » GetAscent() const = 0; | 39 virtual int32_t» » GetAscent() const = 0; |
40 virtual FX_INT32» » GetDescent() const = 0; | 40 virtual int32_t» » GetDescent() const = 0; |
41 | 41 |
42 virtual FX_BOOL» » » GetGlyphBBox(FX_INT32 iGlyphIndex, FX_RE
CT &rtBBox) = 0; | 42 virtual FX_BOOL» » » GetGlyphBBox(int32_t iGlyphIndex, FX_REC
T &rtBBox) = 0; |
43 virtual FX_BOOL GetBBox(FX_RECT &rtBBox) = 0; | 43 virtual FX_BOOL GetBBox(FX_RECT &rtBBox) = 0; |
44 | 44 |
45 virtual FX_INT32» » GetHeight() const = 0; | 45 virtual int32_t» » GetHeight() const = 0; |
46 virtual FX_INT32» » GetItalicAngle() const = 0; | 46 virtual int32_t» » GetItalicAngle() const = 0; |
47 virtual FX_DWORD GetFontData(FX_DWORD dwTable, FX_LPBYTE pBuffer,
FX_DWORD dwSize) = 0; | 47 virtual FX_DWORD GetFontData(FX_DWORD dwTable, FX_LPBYTE pBuffer,
FX_DWORD dwSize) = 0; |
48 | 48 |
49 protected: | 49 protected: |
50 ~IFPF_Font() { } | 50 ~IFPF_Font() { } |
51 }; | 51 }; |
52 class IFPF_FontMgr | 52 class IFPF_FontMgr |
53 { | 53 { |
54 public: | 54 public: |
55 virtual ~IFPF_FontMgr() { } | 55 virtual ~IFPF_FontMgr() { } |
56 virtual void LoadSystemFonts() = 0; | 56 virtual void LoadSystemFonts() = 0; |
57 virtual void LoadPrivateFont(IFX_FileRead* pFontFile)
= 0; | 57 virtual void LoadPrivateFont(IFX_FileRead* pFontFile)
= 0; |
58 virtual void LoadPrivateFont(FX_BSTR bsFileName) = 0; | 58 virtual void LoadPrivateFont(FX_BSTR bsFileName) = 0; |
59 virtual void LoadPrivateFont(FX_LPVOID pBuffer, size_
t szBuffer) = 0; | 59 virtual void LoadPrivateFont(FX_LPVOID pBuffer, size_
t szBuffer) = 0; |
60 | 60 |
61 virtual IFPF_Font*» » CreateFont(FX_BSTR bsFamilyname, FX_BYTE charset
, FX_DWORD dwStyle, FX_DWORD dwMatch = 0) = 0; | 61 virtual IFPF_Font*» » CreateFont(FX_BSTR bsFamilyname, uint8_t charset
, FX_DWORD dwStyle, FX_DWORD dwMatch = 0) = 0; |
62 }; | 62 }; |
63 | 63 |
64 #endif // CORE_INCLUDE_FXGE_FPF_H_ | 64 #endif // CORE_INCLUDE_FXGE_FPF_H_ |
OLD | NEW |