| OLD | NEW |
| 1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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_FPDFAPI_FPDF_RENDER_INCLUDE_CPDF_TEXTRENDERER_H_ | 7 #ifndef CORE_FPDFAPI_FPDF_RENDER_INCLUDE_CPDF_TEXTRENDERER_H_ |
| 8 #define CORE_FPDFAPI_FPDF_RENDER_INCLUDE_CPDF_TEXTRENDERER_H_ | 8 #define CORE_FPDFAPI_FPDF_RENDER_INCLUDE_CPDF_TEXTRENDERER_H_ |
| 9 | 9 |
| 10 #include "core/fxcrt/include/fx_coordinates.h" | 10 #include "core/fxcrt/include/fx_coordinates.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 FX_FLOAT font_size, | 35 FX_FLOAT font_size, |
| 36 const CFX_Matrix* matrix, | 36 const CFX_Matrix* matrix, |
| 37 const CFX_ByteString& str, | 37 const CFX_ByteString& str, |
| 38 FX_ARGB fill_argb, | 38 FX_ARGB fill_argb, |
| 39 FX_ARGB stroke_argb = 0, | 39 FX_ARGB stroke_argb = 0, |
| 40 const CFX_GraphStateData* pGraphState = NULL, | 40 const CFX_GraphStateData* pGraphState = NULL, |
| 41 const CPDF_RenderOptions* pOptions = NULL); | 41 const CPDF_RenderOptions* pOptions = NULL); |
| 42 | 42 |
| 43 static FX_BOOL DrawTextPath(CFX_RenderDevice* pDevice, | 43 static FX_BOOL DrawTextPath(CFX_RenderDevice* pDevice, |
| 44 int nChars, | 44 int nChars, |
| 45 FX_DWORD* pCharCodes, | 45 uint32_t* pCharCodes, |
| 46 FX_FLOAT* pCharPos, | 46 FX_FLOAT* pCharPos, |
| 47 CPDF_Font* pFont, | 47 CPDF_Font* pFont, |
| 48 FX_FLOAT font_size, | 48 FX_FLOAT font_size, |
| 49 const CFX_Matrix* pText2User, | 49 const CFX_Matrix* pText2User, |
| 50 const CFX_Matrix* pUser2Device, | 50 const CFX_Matrix* pUser2Device, |
| 51 const CFX_GraphStateData* pGraphState, | 51 const CFX_GraphStateData* pGraphState, |
| 52 FX_ARGB fill_argb, | 52 FX_ARGB fill_argb, |
| 53 FX_ARGB stroke_argb, | 53 FX_ARGB stroke_argb, |
| 54 CFX_PathData* pClippingPath, | 54 CFX_PathData* pClippingPath, |
| 55 int nFlag = 0); | 55 int nFlag = 0); |
| 56 | 56 |
| 57 static FX_BOOL DrawNormalText(CFX_RenderDevice* pDevice, | 57 static FX_BOOL DrawNormalText(CFX_RenderDevice* pDevice, |
| 58 int nChars, | 58 int nChars, |
| 59 FX_DWORD* pCharCodes, | 59 uint32_t* pCharCodes, |
| 60 FX_FLOAT* pCharPos, | 60 FX_FLOAT* pCharPos, |
| 61 CPDF_Font* pFont, | 61 CPDF_Font* pFont, |
| 62 FX_FLOAT font_size, | 62 FX_FLOAT font_size, |
| 63 const CFX_Matrix* pText2Device, | 63 const CFX_Matrix* pText2Device, |
| 64 FX_ARGB fill_argb, | 64 FX_ARGB fill_argb, |
| 65 const CPDF_RenderOptions* pOptions); | 65 const CPDF_RenderOptions* pOptions); |
| 66 | 66 |
| 67 static FX_BOOL DrawType3Text(CFX_RenderDevice* pDevice, | 67 static FX_BOOL DrawType3Text(CFX_RenderDevice* pDevice, |
| 68 int nChars, | 68 int nChars, |
| 69 FX_DWORD* pCharCodes, | 69 uint32_t* pCharCodes, |
| 70 FX_FLOAT* pCharPos, | 70 FX_FLOAT* pCharPos, |
| 71 CPDF_Font* pFont, | 71 CPDF_Font* pFont, |
| 72 FX_FLOAT font_size, | 72 FX_FLOAT font_size, |
| 73 const CFX_Matrix* pText2Device, | 73 const CFX_Matrix* pText2Device, |
| 74 FX_ARGB fill_argb); | 74 FX_ARGB fill_argb); |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 #endif // CORE_FPDFAPI_FPDF_RENDER_INCLUDE_CPDF_TEXTRENDERER_H_ | 77 #endif // CORE_FPDFAPI_FPDF_RENDER_INCLUDE_CPDF_TEXTRENDERER_H_ |
| OLD | NEW |