| 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 CORE_SRC_FXGE_WIN32_DWRITE_INT_H_ | 7 #ifndef CORE_SRC_FXGE_WIN32_DWRITE_INT_H_ |
| 8 #define CORE_SRC_FXGE_WIN32_DWRITE_INT_H_ | 8 #define CORE_SRC_FXGE_WIN32_DWRITE_INT_H_ |
| 9 | 9 |
| 10 #ifndef DECLSPEC_UUID | 10 #ifndef DECLSPEC_UUID |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 #endif | 28 #endif |
| 29 class CDWriteExt | 29 class CDWriteExt |
| 30 { | 30 { |
| 31 public: | 31 public: |
| 32 CDWriteExt(); | 32 CDWriteExt(); |
| 33 ~CDWriteExt(); | 33 ~CDWriteExt(); |
| 34 | 34 |
| 35 void Load(); | 35 void Load(); |
| 36 void Unload(); | 36 void Unload(); |
| 37 | 37 |
| 38 FX_BOOL» » » IsAvailable() | 38 bool» » » IsAvailable() |
| 39 { | 39 { |
| 40 return m_pDWriteFactory != NULL; | 40 return m_pDWriteFactory != NULL; |
| 41 } | 41 } |
| 42 | 42 |
| 43 void* DwCreateFontFaceFromStream(uint8_t* pData, FX_DW
ORD size, int simulation_style); | 43 void* DwCreateFontFaceFromStream(uint8_t* pData, FX_DW
ORD size, int simulation_style); |
| 44 FX_BOOL DwCreateRenderingTarget(CFX_DIBitmap* pSrc, void** renderTar
get); | 44 bool DwCreateRenderingTarget(CFX_DIBitmap* pSrc, void** renderTarget
); |
| 45 void DwDeleteRenderingTarget(void* renderTarget); | 45 void DwDeleteRenderingTarget(void* renderTarget); |
| 46 FX_BOOL» » » DwRendingString(void* renderTarget, CFX_ClipRgn*
pClipRgn, FX_RECT& stringRect, CFX_AffineMatrix* pMatrix, | 46 bool» » » DwRendingString(void* renderTarget, CFX_ClipRgn*
pClipRgn, FX_RECT& stringRect, CFX_AffineMatrix* pMatrix, |
| 47 void *font, FX_FLOAT font_size, FX_ARGB text
_color, | 47 void *font, FX_FLOAT font_size, FX_ARGB text
_color, |
| 48 int glyph_count, unsigned short* glyph_indic
es, | 48 int glyph_count, unsigned short* glyph_indic
es, |
| 49 FX_FLOAT baselineOriginX, FX_FLOAT baselineO
riginY, | 49 FX_FLOAT baselineOriginX, FX_FLOAT baselineO
riginY, |
| 50 void* glyph_offsets, | 50 void* glyph_offsets, |
| 51 FX_FLOAT* glyph_advances); | 51 FX_FLOAT* glyph_advances); |
| 52 void DwDeleteFont(void* pFont); | 52 void DwDeleteFont(void* pFont); |
| 53 | 53 |
| 54 protected: | 54 protected: |
| 55 void* m_hModule; | 55 void* m_hModule; |
| 56 void* m_pDWriteFactory; | 56 void* m_pDWriteFactory; |
| 57 void* m_pDwFontContext; | 57 void* m_pDwFontContext; |
| 58 void* m_pDwTextRenderer; | 58 void* m_pDwTextRenderer; |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 #endif // CORE_SRC_FXGE_WIN32_DWRITE_INT_H_ | 61 #endif // CORE_SRC_FXGE_WIN32_DWRITE_INT_H_ |
| OLD | NEW |