| 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 "render_int.h" | 7 #include "render_int.h" | 
| 8 | 8 | 
| 9 #include "core/include/fpdfapi/fpdf_pageobj.h" | 9 #include "core/include/fpdfapi/fpdf_pageobj.h" | 
| 10 #include "core/include/fpdfapi/fpdf_render.h" | 10 #include "core/include/fpdfapi/fpdf_render.h" | 
| (...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 404         } | 404         } | 
| 405         FX_Free(pGlyphAndPos); | 405         FX_Free(pGlyphAndPos); | 
| 406         pGlyphAndPos = NULL; | 406         pGlyphAndPos = NULL; | 
| 407       } | 407       } | 
| 408       CPDF_GraphicStates* pStates = CloneObjStates(textobj, FALSE); | 408       CPDF_GraphicStates* pStates = CloneObjStates(textobj, FALSE); | 
| 409       CPDF_RenderOptions Options = m_Options; | 409       CPDF_RenderOptions Options = m_Options; | 
| 410       Options.m_Flags |= RENDER_FORCE_HALFTONE | RENDER_RECT_AA; | 410       Options.m_Flags |= RENDER_FORCE_HALFTONE | RENDER_RECT_AA; | 
| 411       Options.m_Flags &= ~RENDER_FORCE_DOWNSAMPLE; | 411       Options.m_Flags &= ~RENDER_FORCE_DOWNSAMPLE; | 
| 412       CPDF_Dictionary* pFormResource = NULL; | 412       CPDF_Dictionary* pFormResource = NULL; | 
| 413       if (pType3Char->m_pForm && pType3Char->m_pForm->m_pFormDict) { | 413       if (pType3Char->m_pForm && pType3Char->m_pForm->m_pFormDict) { | 
| 414         pFormResource = pType3Char->m_pForm->m_pFormDict->GetDict("Resources"); | 414         pFormResource = | 
|  | 415             pType3Char->m_pForm->m_pFormDict->GetDictBy("Resources"); | 
| 415       } | 416       } | 
| 416       if (fill_alpha == 255) { | 417       if (fill_alpha == 255) { | 
| 417         CPDF_RenderStatus status; | 418         CPDF_RenderStatus status; | 
| 418         status.Initialize(m_pContext, m_pDevice, NULL, NULL, this, pStates, | 419         status.Initialize(m_pContext, m_pDevice, NULL, NULL, this, pStates, | 
| 419                           &Options, pType3Char->m_pForm->m_Transparency, | 420                           &Options, pType3Char->m_pForm->m_Transparency, | 
| 420                           m_bDropObjects, pFormResource, FALSE, pType3Char, | 421                           m_bDropObjects, pFormResource, FALSE, pType3Char, | 
| 421                           fill_argb); | 422                           fill_argb); | 
| 422         status.m_Type3FontCache.Append(m_Type3FontCache); | 423         status.m_Type3FontCache.Append(m_Type3FontCache); | 
| 423         status.m_Type3FontCache.Add(pType3Font); | 424         status.m_Type3FontCache.Add(pType3Font); | 
| 424         m_pDevice->SaveState(); | 425         m_pDevice->SaveState(); | 
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 782     ProcessPath(&path, pObj2Device); | 783     ProcessPath(&path, pObj2Device); | 
| 783   } | 784   } | 
| 784 } | 785 } | 
| 785 | 786 | 
| 786 CFX_PathData* CPDF_Font::LoadGlyphPath(FX_DWORD charcode, int dest_width) { | 787 CFX_PathData* CPDF_Font::LoadGlyphPath(FX_DWORD charcode, int dest_width) { | 
| 787   int glyph_index = GlyphFromCharCode(charcode); | 788   int glyph_index = GlyphFromCharCode(charcode); | 
| 788   if (!m_Font.GetFace()) | 789   if (!m_Font.GetFace()) | 
| 789     return nullptr; | 790     return nullptr; | 
| 790   return m_Font.LoadGlyphPath(glyph_index, dest_width); | 791   return m_Font.LoadGlyphPath(glyph_index, dest_width); | 
| 791 } | 792 } | 
| OLD | NEW | 
|---|