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

Side by Side Diff: xfa/fgas/font/fgas_font.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/fde/fde_gedevice.cpp ('k') | xfa/fgas/font/fgas_gefont.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 XFA_FGAS_FONT_FGAS_FONT_H_ 7 #ifndef XFA_FGAS_FONT_FGAS_FONT_H_
8 #define XFA_FGAS_FONT_FGAS_FONT_H_ 8 #define XFA_FGAS_FONT_FGAS_FONT_H_
9 9
10 #include "core/fxge/include/fx_font.h" 10 #include "core/fxge/include/fx_font.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 FX_BOOL bCharCode = FALSE) = 0; 81 FX_BOOL bCharCode = FALSE) = 0;
82 virtual int32_t GetAscent() const = 0; 82 virtual int32_t GetAscent() const = 0;
83 virtual int32_t GetDescent() const = 0; 83 virtual int32_t GetDescent() const = 0;
84 virtual FX_BOOL GetCharBBox(FX_WCHAR wUnicode, 84 virtual FX_BOOL GetCharBBox(FX_WCHAR wUnicode,
85 CFX_Rect& bbox, 85 CFX_Rect& bbox,
86 FX_BOOL bCharCode = FALSE) = 0; 86 FX_BOOL bCharCode = FALSE) = 0;
87 virtual FX_BOOL GetBBox(CFX_Rect& bbox) = 0; 87 virtual FX_BOOL GetBBox(CFX_Rect& bbox) = 0;
88 virtual int32_t GetItalicAngle() const = 0; 88 virtual int32_t GetItalicAngle() const = 0;
89 virtual void Reset() = 0; 89 virtual void Reset() = 0;
90 virtual IFGAS_Font* GetSubstFont(int32_t iGlyphIndex) const = 0; 90 virtual IFGAS_Font* GetSubstFont(int32_t iGlyphIndex) const = 0;
91 virtual void* GetDevFont() const = 0; 91 virtual CFX_Font* GetDevFont() const = 0;
92 virtual void SetFontProvider(CXFA_PDFFontMgr* pProvider) = 0; 92 virtual void SetFontProvider(CXFA_PDFFontMgr* pProvider) = 0;
93 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ 93 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_
94 virtual void SetLogicalFontStyle(uint32_t dwLogFontStyle) = 0; 94 virtual void SetLogicalFontStyle(uint32_t dwLogFontStyle) = 0;
95 #endif 95 #endif
96 }; 96 };
97 97
98 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ 98 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_
99 struct FX_FONTMATCHPARAMS { 99 struct FX_FONTMATCHPARAMS {
100 const FX_WCHAR* pwsFamily; 100 const FX_WCHAR* pwsFamily;
101 uint32_t dwFontStyles; 101 uint32_t dwFontStyles;
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 int32_t iFaceIndex, 238 int32_t iFaceIndex,
239 int32_t* pFaceCount = NULL, 239 int32_t* pFaceCount = NULL,
240 FX_BOOL bSaveStream = FALSE) = 0; 240 FX_BOOL bSaveStream = FALSE) = 0;
241 241
242 virtual void ClearFontCache() = 0; 242 virtual void ClearFontCache() = 0;
243 virtual void RemoveFont(IFGAS_Font* pFont) = 0; 243 virtual void RemoveFont(IFGAS_Font* pFont) = 0;
244 }; 244 };
245 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ 245 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_
246 246
247 #endif // XFA_FGAS_FONT_FGAS_FONT_H_ 247 #endif // XFA_FGAS_FONT_FGAS_FONT_H_
OLDNEW
« no previous file with comments | « xfa/fde/fde_gedevice.cpp ('k') | xfa/fgas/font/fgas_gefont.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698