| 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 XFA_SRC_FGAS_SRC_FONT_FX_GEFONT_H_ | 7 #ifndef XFA_SRC_FGAS_SRC_FONT_FX_GEFONT_H_ |
| 8 #define XFA_SRC_FGAS_SRC_FONT_FX_GEFONT_H_ | 8 #define XFA_SRC_FGAS_SRC_FONT_FX_GEFONT_H_ |
| 9 | 9 |
| 10 #ifndef _FXPLUS | 10 #ifndef _FXPLUS |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 virtual void* GetDevFont() const { return (void*)m_pFont; } | 47 virtual void* GetDevFont() const { return (void*)m_pFont; } |
| 48 virtual void SetFontProvider(IFX_FontProvider* pProvider) { | 48 virtual void SetFontProvider(IFX_FontProvider* pProvider) { |
| 49 m_pProvider = pProvider; | 49 m_pProvider = pProvider; |
| 50 } | 50 } |
| 51 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ | 51 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ |
| 52 virtual void SetLogicalFontStyle(FX_DWORD dwLogFontStyle) { | 52 virtual void SetLogicalFontStyle(FX_DWORD dwLogFontStyle) { |
| 53 m_bUseLogFontStyle = TRUE; | 53 m_bUseLogFontStyle = TRUE; |
| 54 m_dwLogFontStyle = dwLogFontStyle; | 54 m_dwLogFontStyle = dwLogFontStyle; |
| 55 }; | 55 }; |
| 56 #endif | 56 #endif |
| 57 |
| 57 protected: | 58 protected: |
| 58 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ | 59 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ |
| 59 FX_BOOL m_bUseLogFontStyle; | 60 FX_BOOL m_bUseLogFontStyle; |
| 60 FX_DWORD m_dwLogFontStyle; | 61 FX_DWORD m_dwLogFontStyle; |
| 61 #endif | 62 #endif |
| 62 CFX_Font* m_pFont; | 63 CFX_Font* m_pFont; |
| 63 IFX_FontMgr* m_pFontMgr; | 64 IFX_FontMgr* m_pFontMgr; |
| 64 int32_t m_iRefCount; | 65 int32_t m_iRefCount; |
| 65 FX_BOOL m_bExtFont; | 66 FX_BOOL m_bExtFont; |
| 66 IFX_Stream* m_pStream; | 67 IFX_Stream* m_pStream; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 83 FX_BOOL bRecursive, | 84 FX_BOOL bRecursive, |
| 84 FX_BOOL bCharCode = FALSE); | 85 FX_BOOL bCharCode = FALSE); |
| 85 int32_t GetGlyphIndex(FX_WCHAR wUnicode, | 86 int32_t GetGlyphIndex(FX_WCHAR wUnicode, |
| 86 FX_BOOL bRecursive, | 87 FX_BOOL bRecursive, |
| 87 IFX_Font** ppFont, | 88 IFX_Font** ppFont, |
| 88 FX_BOOL bCharCode = FALSE); | 89 FX_BOOL bCharCode = FALSE); |
| 89 }; | 90 }; |
| 90 #endif | 91 #endif |
| 91 | 92 |
| 92 #endif // XFA_SRC_FGAS_SRC_FONT_FX_GEFONT_H_ | 93 #endif // XFA_SRC_FGAS_SRC_FONT_FX_GEFONT_H_ |
| OLD | NEW |