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

Side by Side Diff: core/src/fxge/ge/fx_ge_font.cpp

Issue 404653005: Remove a few unused variables, functions, and tables. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 6 years, 5 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
« no previous file with comments | « core/src/fxge/dib/fx_dib_transform.cpp ('k') | core/src/fxge/ge/fx_ge_fontmap.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/fxge/fx_freetype.h" 8 #include "../../../include/fxge/fx_freetype.h"
9 #include "text_int.h" 9 #include "text_int.h"
10 #define EM_ADJUST(em, a) (em == 0?(a): (a)*1000/em) 10 #define EM_ADJUST(em, a) (em == 0?(a): (a)*1000/em)
(...skipping 22 matching lines...) Expand all
33 m_pSubstFont = NULL; 33 m_pSubstFont = NULL;
34 } 34 }
35 #ifdef FOXIT_CHROME_BUILD 35 #ifdef FOXIT_CHROME_BUILD
36 if (m_pFontDataAllocation) { 36 if (m_pFontDataAllocation) {
37 FX_Free(m_pFontDataAllocation); 37 FX_Free(m_pFontDataAllocation);
38 m_pFontDataAllocation = NULL; 38 m_pFontDataAllocation = NULL;
39 } 39 }
40 #endif 40 #endif
41 if (m_Face) { 41 if (m_Face) {
42 #ifdef FOXIT_CHROME_BUILD 42 #ifdef FOXIT_CHROME_BUILD
43 FXFT_Library library = FXFT_Get_Face_FreeType(m_Face);
44 if (FXFT_Get_Face_External_Stream(m_Face)) { 43 if (FXFT_Get_Face_External_Stream(m_Face)) {
45 FXFT_Clear_Face_External_Stream(m_Face); 44 FXFT_Clear_Face_External_Stream(m_Face);
46 } 45 }
47 #endif 46 #endif
48 if(m_bEmbedded) { 47 if(m_bEmbedded) {
49 DeleteFace(); 48 DeleteFace();
50 } else { 49 } else {
51 CFX_GEModule::Get()->GetFontMgr()->ReleaseFace(m_Face); 50 CFX_GEModule::Get()->GetFontMgr()->ReleaseFace(m_Face);
52 } 51 }
53 } 52 }
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 } 448 }
450 } 449 }
451 return FXFT_Get_Char_Index(face, charcode); 450 return FXFT_Get_Char_Index(face, charcode);
452 } 451 }
453 IFX_FontEncoding* FXGE_CreateUnicodeEncoding(CFX_Font* pFont) 452 IFX_FontEncoding* FXGE_CreateUnicodeEncoding(CFX_Font* pFont)
454 { 453 {
455 CFX_UnicodeEncoding* pEncoding = NULL; 454 CFX_UnicodeEncoding* pEncoding = NULL;
456 pEncoding = FX_NEW CFX_UnicodeEncoding(pFont); 455 pEncoding = FX_NEW CFX_UnicodeEncoding(pFont);
457 return pEncoding; 456 return pEncoding;
458 } 457 }
OLDNEW
« no previous file with comments | « core/src/fxge/dib/fx_dib_transform.cpp ('k') | core/src/fxge/ge/fx_ge_fontmap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698