| 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 #include "core/fpdfapi/fpdf_render/render_int.h" | 7 #include "core/fpdfapi/fpdf_render/render_int.h" |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 } | 230 } |
| 231 glyphs.clear(); | 231 glyphs.clear(); |
| 232 } | 232 } |
| 233 CPDF_GraphicStates* pStates = CloneObjStates(textobj, FALSE); | 233 CPDF_GraphicStates* pStates = CloneObjStates(textobj, FALSE); |
| 234 CPDF_RenderOptions Options = m_Options; | 234 CPDF_RenderOptions Options = m_Options; |
| 235 Options.m_Flags |= RENDER_FORCE_HALFTONE | RENDER_RECT_AA; | 235 Options.m_Flags |= RENDER_FORCE_HALFTONE | RENDER_RECT_AA; |
| 236 Options.m_Flags &= ~RENDER_FORCE_DOWNSAMPLE; | 236 Options.m_Flags &= ~RENDER_FORCE_DOWNSAMPLE; |
| 237 CPDF_Dictionary* pFormResource = nullptr; | 237 CPDF_Dictionary* pFormResource = nullptr; |
| 238 if (pType3Char->m_pForm && pType3Char->m_pForm->m_pFormDict) { | 238 if (pType3Char->m_pForm && pType3Char->m_pForm->m_pFormDict) { |
| 239 pFormResource = | 239 pFormResource = |
| 240 pType3Char->m_pForm->m_pFormDict->GetDictBy("Resources"); | 240 pType3Char->m_pForm->m_pFormDict->GetDictFor("Resources"); |
| 241 } | 241 } |
| 242 if (fill_alpha == 255) { | 242 if (fill_alpha == 255) { |
| 243 CPDF_RenderStatus status; | 243 CPDF_RenderStatus status; |
| 244 status.Initialize(m_pContext, m_pDevice, nullptr, nullptr, this, | 244 status.Initialize(m_pContext, m_pDevice, nullptr, nullptr, this, |
| 245 pStates, &Options, | 245 pStates, &Options, |
| 246 pType3Char->m_pForm->m_Transparency, m_bDropObjects, | 246 pType3Char->m_pForm->m_Transparency, m_bDropObjects, |
| 247 pFormResource, FALSE, pType3Char, fill_argb); | 247 pFormResource, FALSE, pType3Char, fill_argb); |
| 248 status.m_Type3FontCache.Append(m_Type3FontCache); | 248 status.m_Type3FontCache.Append(m_Type3FontCache); |
| 249 status.m_Type3FontCache.Add(pType3Font); | 249 status.m_Type3FontCache.Add(pType3Font); |
| 250 m_pDevice->SaveState(); | 250 m_pDevice->SaveState(); |
| (...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 666 matrix.Concat(font_size, 0, 0, font_size, charpos.m_OriginX, | 666 matrix.Concat(font_size, 0, 0, font_size, charpos.m_OriginX, |
| 667 charpos.m_OriginY); | 667 charpos.m_OriginY); |
| 668 path.m_Path.Append(pPath, &matrix); | 668 path.m_Path.Append(pPath, &matrix); |
| 669 path.m_Matrix = *pTextMatrix; | 669 path.m_Matrix = *pTextMatrix; |
| 670 path.m_bStroke = bStroke; | 670 path.m_bStroke = bStroke; |
| 671 path.m_FillType = bFill ? FXFILL_WINDING : 0; | 671 path.m_FillType = bFill ? FXFILL_WINDING : 0; |
| 672 path.CalcBoundingBox(); | 672 path.CalcBoundingBox(); |
| 673 ProcessPath(&path, pObj2Device); | 673 ProcessPath(&path, pObj2Device); |
| 674 } | 674 } |
| 675 } | 675 } |
| OLD | NEW |