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 _FX_FONT_H_ | 7 #ifndef _FX_FONT_H_ |
8 #define _FX_FONT_H_ | 8 #define _FX_FONT_H_ |
9 #ifndef _FXCRT_EXTENSION_ | 9 #ifndef _FXCRT_EXTENSION_ |
10 #include "../../include/fxcrt/fx_ext.h" | 10 #include "../../include/fxcrt/fx_ext.h" |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 virtual void DeleteFont(void* hFont) = 0; | 309 virtual void DeleteFont(void* hFont) = 0; |
310 virtual void* RetainFont(void* hFont) | 310 virtual void* RetainFont(void* hFont) |
311 { | 311 { |
312 return NULL; | 312 return NULL; |
313 } | 313 } |
314 }; | 314 }; |
315 class CFX_FolderFontInfo : public IFX_SystemFontInfo | 315 class CFX_FolderFontInfo : public IFX_SystemFontInfo |
316 { | 316 { |
317 public: | 317 public: |
318 CFX_FolderFontInfo(); | 318 CFX_FolderFontInfo(); |
319 ~CFX_FolderFontInfo(); | 319 virtual ~CFX_FolderFontInfo(); |
320 void AddPath(FX_BSTR path); | 320 void AddPath(FX_BSTR path); |
321 virtual void Release(); | 321 virtual void Release(); |
322 virtual FX_BOOL EnumFontList(CFX_FontMapper* pMapper); | 322 virtual FX_BOOL EnumFontList(CFX_FontMapper* pMapper); |
323 virtual void* MapFont(int weight, FX_BOOL bItalic, int charset
, int pitch_family, FX_LPCSTR face, FX_BOOL& bExact); | 323 virtual void* MapFont(int weight, FX_BOOL bItalic, int charset
, int pitch_family, FX_LPCSTR face, FX_BOOL& bExact); |
324 virtual void* GetFont(FX_LPCSTR face); | 324 virtual void* GetFont(FX_LPCSTR face); |
325 virtual FX_DWORD GetFontData(void* hFont, FX_DWORD table, FX_LPBYTE buffe
r, FX_DWORD size); | 325 virtual FX_DWORD GetFontData(void* hFont, FX_DWORD table, FX_LPBYTE buffe
r, FX_DWORD size); |
326 virtual void DeleteFont(void* hFont); | 326 virtual void DeleteFont(void* hFont); |
327 virtual FX_BOOL GetFaceName(void* hFont, CFX_ByteString& name); | 327 virtual FX_BOOL GetFaceName(void* hFont, CFX_ByteString& name); |
328 virtual FX_BOOL GetFontCharset(void* hFont, int& charset); | 328 virtual FX_BOOL GetFontCharset(void* hFont, int& charset); |
329 protected: | 329 protected: |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 FX_BOOL OutputText(void* dib, int x, int y, CFX_Font* pFont, double font_size, | 419 FX_BOOL OutputText(void* dib, int x, int y, CFX_Font* pFont, double font_size, |
420 CFX_AffineMatrix* pText_matrix, unsigned short const* text, u
nsigned long argb); | 420 CFX_AffineMatrix* pText_matrix, unsigned short const* text, u
nsigned long argb); |
421 class IFX_GSUBTable | 421 class IFX_GSUBTable |
422 { | 422 { |
423 public: | 423 public: |
424 virtual void Release() = 0; | 424 virtual void Release() = 0; |
425 virtual FX_BOOL GetVerticalGlyph(FX_DWORD glyphnum, FX_DWORD* vglyphnum) = 0
; | 425 virtual FX_BOOL GetVerticalGlyph(FX_DWORD glyphnum, FX_DWORD* vglyphnum) = 0
; |
426 }; | 426 }; |
427 IFX_GSUBTable* FXGE_CreateGSUBTable(CFX_Font* pFont); | 427 IFX_GSUBTable* FXGE_CreateGSUBTable(CFX_Font* pFont); |
428 #endif | 428 #endif |
OLD | NEW |