| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 PDFium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | |
| 6 | |
| 7 #ifndef CORE_FPDFAPI_FPDF_RENDER_CPDF_TEXTRENDERER_H_ | |
| 8 #define CORE_FPDFAPI_FPDF_RENDER_CPDF_TEXTRENDERER_H_ | |
| 9 | |
| 10 #include "core/fxcrt/fx_coordinates.h" | |
| 11 #include "core/fxcrt/fx_string.h" | |
| 12 #include "core/fxcrt/fx_system.h" | |
| 13 #include "core/fxge/fx_dib.h" | |
| 14 | |
| 15 class CFX_RenderDevice; | |
| 16 class CFX_GraphStateData; | |
| 17 class CFX_PathData; | |
| 18 class CPDF_RenderOptions; | |
| 19 class CPDF_Font; | |
| 20 | |
| 21 class CPDF_TextRenderer { | |
| 22 public: | |
| 23 static void DrawTextString(CFX_RenderDevice* pDevice, | |
| 24 FX_FLOAT origin_x, | |
| 25 FX_FLOAT origin_y, | |
| 26 CPDF_Font* pFont, | |
| 27 FX_FLOAT font_size, | |
| 28 const CFX_Matrix* matrix, | |
| 29 const CFX_ByteString& str, | |
| 30 FX_ARGB fill_argb, | |
| 31 FX_ARGB stroke_argb, | |
| 32 const CFX_GraphStateData* pGraphState, | |
| 33 const CPDF_RenderOptions* pOptions); | |
| 34 | |
| 35 static FX_BOOL DrawTextPath(CFX_RenderDevice* pDevice, | |
| 36 int nChars, | |
| 37 uint32_t* pCharCodes, | |
| 38 FX_FLOAT* pCharPos, | |
| 39 CPDF_Font* pFont, | |
| 40 FX_FLOAT font_size, | |
| 41 const CFX_Matrix* pText2User, | |
| 42 const CFX_Matrix* pUser2Device, | |
| 43 const CFX_GraphStateData* pGraphState, | |
| 44 FX_ARGB fill_argb, | |
| 45 FX_ARGB stroke_argb, | |
| 46 CFX_PathData* pClippingPath, | |
| 47 int nFlag); | |
| 48 | |
| 49 static FX_BOOL DrawNormalText(CFX_RenderDevice* pDevice, | |
| 50 int nChars, | |
| 51 uint32_t* pCharCodes, | |
| 52 FX_FLOAT* pCharPos, | |
| 53 CPDF_Font* pFont, | |
| 54 FX_FLOAT font_size, | |
| 55 const CFX_Matrix* pText2Device, | |
| 56 FX_ARGB fill_argb, | |
| 57 const CPDF_RenderOptions* pOptions); | |
| 58 }; | |
| 59 | |
| 60 #endif // CORE_FPDFAPI_FPDF_RENDER_CPDF_TEXTRENDERER_H_ | |
| OLD | NEW |