Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Side by Side Diff: core/include/fxge/fpf.h

Issue 1832173003: Remove FX_DWORD from core/ and delete definition (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « core/include/fxcodec/fx_codec.h ('k') | core/include/fxge/fx_dib.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "core/fxcrt/include/fx_coordinates.h" 10 #include "core/fxcrt/include/fx_coordinates.h"
(...skipping 13 matching lines...) Expand all
24 24
25 typedef struct FPF_HFONT_ { void* pData; } * FPF_HFONT; 25 typedef struct FPF_HFONT_ { void* pData; } * FPF_HFONT;
26 26
27 class IFPF_Font { 27 class IFPF_Font {
28 public: 28 public:
29 virtual void Release() = 0; 29 virtual void Release() = 0;
30 virtual IFPF_Font* Retain() = 0; 30 virtual IFPF_Font* Retain() = 0;
31 virtual FPF_HFONT GetHandle() = 0; 31 virtual FPF_HFONT GetHandle() = 0;
32 virtual CFX_ByteString GetFamilyName() = 0; 32 virtual CFX_ByteString GetFamilyName() = 0;
33 virtual CFX_WideString GetPsName() = 0; 33 virtual CFX_WideString GetPsName() = 0;
34 virtual FX_DWORD GetFontStyle() const = 0; 34 virtual uint32_t GetFontStyle() const = 0;
35 virtual uint8_t GetCharset() const = 0; 35 virtual uint8_t GetCharset() const = 0;
36 36
37 virtual int32_t GetGlyphIndex(FX_WCHAR wUnicode) = 0; 37 virtual int32_t GetGlyphIndex(FX_WCHAR wUnicode) = 0;
38 virtual int32_t GetGlyphWidth(int32_t iGlyphIndex) = 0; 38 virtual int32_t GetGlyphWidth(int32_t iGlyphIndex) = 0;
39 39
40 virtual int32_t GetAscent() const = 0; 40 virtual int32_t GetAscent() const = 0;
41 virtual int32_t GetDescent() const = 0; 41 virtual int32_t GetDescent() const = 0;
42 42
43 virtual FX_BOOL GetGlyphBBox(int32_t iGlyphIndex, FX_RECT& rtBBox) = 0; 43 virtual FX_BOOL GetGlyphBBox(int32_t iGlyphIndex, FX_RECT& rtBBox) = 0;
44 virtual FX_BOOL GetBBox(FX_RECT& rtBBox) = 0; 44 virtual FX_BOOL GetBBox(FX_RECT& rtBBox) = 0;
45 45
46 virtual int32_t GetHeight() const = 0; 46 virtual int32_t GetHeight() const = 0;
47 virtual int32_t GetItalicAngle() const = 0; 47 virtual int32_t GetItalicAngle() const = 0;
48 virtual FX_DWORD GetFontData(FX_DWORD dwTable, 48 virtual uint32_t GetFontData(uint32_t dwTable,
49 uint8_t* pBuffer, 49 uint8_t* pBuffer,
50 FX_DWORD dwSize) = 0; 50 uint32_t dwSize) = 0;
51 51
52 protected: 52 protected:
53 virtual ~IFPF_Font() {} 53 virtual ~IFPF_Font() {}
54 }; 54 };
55 55
56 class IFPF_FontMgr { 56 class IFPF_FontMgr {
57 public: 57 public:
58 virtual ~IFPF_FontMgr() {} 58 virtual ~IFPF_FontMgr() {}
59 virtual void LoadSystemFonts() = 0; 59 virtual void LoadSystemFonts() = 0;
60 virtual void LoadPrivateFont(IFX_FileRead* pFontFile) = 0; 60 virtual void LoadPrivateFont(IFX_FileRead* pFontFile) = 0;
61 virtual void LoadPrivateFont(const CFX_ByteStringC& bsFileName) = 0; 61 virtual void LoadPrivateFont(const CFX_ByteStringC& bsFileName) = 0;
62 virtual void LoadPrivateFont(void* pBuffer, size_t szBuffer) = 0; 62 virtual void LoadPrivateFont(void* pBuffer, size_t szBuffer) = 0;
63 63
64 virtual IFPF_Font* CreateFont(const CFX_ByteStringC& bsFamilyname, 64 virtual IFPF_Font* CreateFont(const CFX_ByteStringC& bsFamilyname,
65 uint8_t charset, 65 uint8_t charset,
66 FX_DWORD dwStyle, 66 uint32_t dwStyle,
67 FX_DWORD dwMatch = 0) = 0; 67 uint32_t dwMatch = 0) = 0;
68 }; 68 };
69 69
70 #endif // CORE_INCLUDE_FXGE_FPF_H_ 70 #endif // CORE_INCLUDE_FXGE_FPF_H_
OLDNEW
« no previous file with comments | « core/include/fxcodec/fx_codec.h ('k') | core/include/fxge/fx_dib.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698