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

Side by Side Diff: xfa/fgas/font/fgas_gefont.h

Issue 2033243004: Make GetDevFont() return a CFX_Font* instead of void* (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: One more file. Created 4 years, 6 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 | « xfa/fgas/font/fgas_font.h ('k') | xfa/fgas/font/fgas_stdfontmgr.cpp » ('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 XFA_FGAS_FONT_FGAS_GEFONT_H_ 7 #ifndef XFA_FGAS_FONT_FGAS_GEFONT_H_
8 #define XFA_FGAS_FONT_FGAS_GEFONT_H_ 8 #define XFA_FGAS_FONT_FGAS_GEFONT_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 virtual int32_t GetGlyphIndex(FX_WCHAR wUnicode, FX_BOOL bCharCode = FALSE); 42 virtual int32_t GetGlyphIndex(FX_WCHAR wUnicode, FX_BOOL bCharCode = FALSE);
43 virtual int32_t GetAscent() const; 43 virtual int32_t GetAscent() const;
44 virtual int32_t GetDescent() const; 44 virtual int32_t GetDescent() const;
45 virtual FX_BOOL GetCharBBox(FX_WCHAR wUnicode, 45 virtual FX_BOOL GetCharBBox(FX_WCHAR wUnicode,
46 CFX_Rect& bbox, 46 CFX_Rect& bbox,
47 FX_BOOL bCharCode = FALSE); 47 FX_BOOL bCharCode = FALSE);
48 virtual FX_BOOL GetBBox(CFX_Rect& bbox); 48 virtual FX_BOOL GetBBox(CFX_Rect& bbox);
49 virtual int32_t GetItalicAngle() const; 49 virtual int32_t GetItalicAngle() const;
50 virtual void Reset(); 50 virtual void Reset();
51 virtual IFGAS_Font* GetSubstFont(int32_t iGlyphIndex) const; 51 virtual IFGAS_Font* GetSubstFont(int32_t iGlyphIndex) const;
52 virtual void* GetDevFont() const { return (void*)m_pFont; } 52 virtual CFX_Font* GetDevFont() const { return m_pFont; }
53 virtual void SetFontProvider(CXFA_PDFFontMgr* pProvider) { 53 virtual void SetFontProvider(CXFA_PDFFontMgr* pProvider) {
54 m_pProvider = pProvider; 54 m_pProvider = pProvider;
55 } 55 }
56 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ 56 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_
57 virtual void SetLogicalFontStyle(uint32_t dwLogFontStyle) { 57 virtual void SetLogicalFontStyle(uint32_t dwLogFontStyle) {
58 m_bUseLogFontStyle = TRUE; 58 m_bUseLogFontStyle = TRUE;
59 m_dwLogFontStyle = dwLogFontStyle; 59 m_dwLogFontStyle = dwLogFontStyle;
60 } 60 }
61 #endif 61 #endif
62 62
(...skipping 25 matching lines...) Expand all
88 int32_t& iWidth, 88 int32_t& iWidth,
89 FX_BOOL bRecursive, 89 FX_BOOL bRecursive,
90 FX_BOOL bCharCode = FALSE); 90 FX_BOOL bCharCode = FALSE);
91 int32_t GetGlyphIndex(FX_WCHAR wUnicode, 91 int32_t GetGlyphIndex(FX_WCHAR wUnicode,
92 FX_BOOL bRecursive, 92 FX_BOOL bRecursive,
93 IFGAS_Font** ppFont, 93 IFGAS_Font** ppFont,
94 FX_BOOL bCharCode = FALSE); 94 FX_BOOL bCharCode = FALSE);
95 }; 95 };
96 96
97 #endif // XFA_FGAS_FONT_FGAS_GEFONT_H_ 97 #endif // XFA_FGAS_FONT_FGAS_GEFONT_H_
OLDNEW
« no previous file with comments | « xfa/fgas/font/fgas_font.h ('k') | xfa/fgas/font/fgas_stdfontmgr.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698