Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(327)

Side by Side Diff: core/src/fpdfapi/fpdf_render/fpdf_render_text.cpp

Issue 1411833003: XFA: Manually apply changes to fpdf_text.h and fx_font.h from master (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "../../../include/fxge/fx_ge.h" 7 #include "../../../include/fxge/fx_ge.h"
8 #include "../../../include/fpdfapi/fpdf_render.h" 8 #include "../../../include/fpdfapi/fpdf_render.h"
9 #include "../../../include/fpdfapi/fpdf_pageobj.h" 9 #include "../../../include/fpdfapi/fpdf_pageobj.h"
10 #include "../fpdf_page/pageint.h" 10 #include "../fpdf_page/pageint.h"
(...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 matrix.Concat(font_size, 0, 0, font_size, charpos.m_OriginX, 783 matrix.Concat(font_size, 0, 0, font_size, charpos.m_OriginX,
784 charpos.m_OriginY); 784 charpos.m_OriginY);
785 path.m_Path.New()->Append(pPath, &matrix); 785 path.m_Path.New()->Append(pPath, &matrix);
786 path.m_Matrix = *pTextMatrix; 786 path.m_Matrix = *pTextMatrix;
787 path.m_bStroke = bStroke; 787 path.m_bStroke = bStroke;
788 path.m_FillType = bFill ? FXFILL_WINDING : 0; 788 path.m_FillType = bFill ? FXFILL_WINDING : 0;
789 path.CalcBoundingBox(); 789 path.CalcBoundingBox();
790 ProcessPath(&path, pObj2Device); 790 ProcessPath(&path, pObj2Device);
791 } 791 }
792 } 792 }
793
793 CFX_PathData* CPDF_Font::LoadGlyphPath(FX_DWORD charcode, int dest_width) { 794 CFX_PathData* CPDF_Font::LoadGlyphPath(FX_DWORD charcode, int dest_width) {
794 int glyph_index = GlyphFromCharCode(charcode); 795 int glyph_index = GlyphFromCharCode(charcode);
795 if (m_Font.m_Face == NULL) { 796 if (!m_Font.GetFace())
796 return NULL; 797 return nullptr;
797 }
798 return m_Font.LoadGlyphPath(glyph_index, dest_width); 798 return m_Font.LoadGlyphPath(glyph_index, dest_width);
799 } 799 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698