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

Side by Side Diff: xfa/fde/tto/fde_textout.cpp

Issue 2037563002: Replace IFGAS_Font with underlying concrete type (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: Fix Windows Created 4 years, 6 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 "xfa/fde/tto/fde_textout.h" 7 #include "xfa/fde/tto/fde_textout.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 m_rtClip.Reset(); 46 m_rtClip.Reset();
47 m_rtLogicClip.Reset(); 47 m_rtLogicClip.Reset();
48 } 48 }
49 CFDE_TextOut::~CFDE_TextOut() { 49 CFDE_TextOut::~CFDE_TextOut() {
50 delete m_pTxtBreak; 50 delete m_pTxtBreak;
51 FX_Free(m_pCharWidths); 51 FX_Free(m_pCharWidths);
52 FX_Free(m_pEllCharWidths); 52 FX_Free(m_pEllCharWidths);
53 FX_Free(m_pCharPos); 53 FX_Free(m_pCharPos);
54 m_ttoLines.RemoveAll(); 54 m_ttoLines.RemoveAll();
55 } 55 }
56 void CFDE_TextOut::SetFont(IFX_Font* pFont) { 56 void CFDE_TextOut::SetFont(CFX_GEFont* pFont) {
57 ASSERT(pFont); 57 ASSERT(pFont);
58 m_pFont = pFont; 58 m_pFont = pFont;
59 m_pTxtBreak->SetFont(pFont); 59 m_pTxtBreak->SetFont(pFont);
60 } 60 }
61 void CFDE_TextOut::SetFontSize(FX_FLOAT fFontSize) { 61 void CFDE_TextOut::SetFontSize(FX_FLOAT fFontSize) {
62 ASSERT(fFontSize > 0); 62 ASSERT(fFontSize > 0);
63 m_fFontSize = fFontSize; 63 m_fFontSize = fFontSize;
64 m_pTxtBreak->SetFontSize(fFontSize); 64 m_pTxtBreak->SetFontSize(fFontSize);
65 } 65 }
66 void CFDE_TextOut::SetTextColor(FX_ARGB color) { 66 void CFDE_TextOut::SetTextColor(FX_ARGB color) {
(...skipping 868 matching lines...) Expand 10 before | Expand all | Expand 10 after
935 return NULL; 935 return NULL;
936 } 936 }
937 return m_pieces.GetPtrAt(index); 937 return m_pieces.GetPtrAt(index);
938 } 938 }
939 void CFDE_TTOLine::RemoveLast(int32_t iCount) { 939 void CFDE_TTOLine::RemoveLast(int32_t iCount) {
940 m_pieces.RemoveLast(iCount); 940 m_pieces.RemoveLast(iCount);
941 } 941 }
942 void CFDE_TTOLine::RemoveAll(FX_BOOL bLeaveMemory) { 942 void CFDE_TTOLine::RemoveAll(FX_BOOL bLeaveMemory) {
943 m_pieces.RemoveAll(bLeaveMemory); 943 m_pieces.RemoveAll(bLeaveMemory);
944 } 944 }
OLDNEW
« no previous file with comments | « xfa/fde/tto/fde_textout.h ('k') | xfa/fgas/font/fgas_font.h » ('j') | xfa/fgas/font/fgas_font.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698