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

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

Issue 966023002: Merge to XFA: Cleanup: Fix some unused-function warnings. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 9 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/fpdfdoc/doc_basic.cpp ('k') | fpdfsdk/src/fxedit/fxet_pageobjs.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 GET_TT_SHORT(w) (FX_WORD)(((w)[0] << 8) | (w)[1]) 10 #define GET_TT_SHORT(w) (FX_WORD)(((w)[0] << 8) | (w)[1])
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 return 1 << 20; 741 return 1 << 20;
742 } 742 }
743 if (charset == FXFONT_HANGEUL_CHARSET) { 743 if (charset == FXFONT_HANGEUL_CHARSET) {
744 return 1 << 19; 744 return 1 << 19;
745 } 745 }
746 if (charset == FXFONT_SYMBOL_CHARSET) { 746 if (charset == FXFONT_SYMBOL_CHARSET) {
747 return 1 << 31; 747 return 1 << 31;
748 } 748 }
749 return 1 << 21; 749 return 1 << 21;
750 } 750 }
751 static int CP2CharSet(int cp)
752 {
753 if(cp == 932) {
754 return FXFONT_SHIFTJIS_CHARSET;
755 } else if(cp == 936) {
756 return FXFONT_GB2312_CHARSET;
757 } else if(cp == 949) {
758 return FXFONT_HANGEUL_CHARSET;
759 } else if(cp == 950) {
760 return FXFONT_CHINESEBIG5_CHARSET;
761 }
762 return FXFONT_DEFAULT_CHARSET;
763 }
764 FXFT_Face CFX_FontMapper::UseInternalSubst(CFX_SubstFont* pSubstFont, int iBaseF ont, int italic_angle, int weight, int picthfamily) 751 FXFT_Face CFX_FontMapper::UseInternalSubst(CFX_SubstFont* pSubstFont, int iBaseF ont, int italic_angle, int weight, int picthfamily)
765 { 752 {
766 if (iBaseFont < 12) { 753 if (iBaseFont < 12) {
767 if (m_FoxitFaces[iBaseFont]) { 754 if (m_FoxitFaces[iBaseFont]) {
768 return m_FoxitFaces[iBaseFont]; 755 return m_FoxitFaces[iBaseFont];
769 } 756 }
770 FX_LPCBYTE pFontData = NULL; 757 FX_LPCBYTE pFontData = NULL;
771 FX_DWORD size = 0; 758 FX_DWORD size = 0;
772 if (m_pFontMgr->GetStandardFont(pFontData, size, iBaseFont)) { 759 if (m_pFontMgr->GetStandardFont(pFontData, size, iBaseFont)) {
773 m_FoxitFaces[iBaseFont] = m_pFontMgr->GetFixedFace(pFontData, size, 0); 760 m_FoxitFaces[iBaseFont] = m_pFontMgr->GetFixedFace(pFontData, size, 0);
(...skipping 834 matching lines...) Expand 10 before | Expand all | Expand 10 after
1608 return FALSE; 1595 return FALSE;
1609 } 1596 }
1610 CFontFaceInfo* pFont = (CFontFaceInfo*)hFont; 1597 CFontFaceInfo* pFont = (CFontFaceInfo*)hFont;
1611 name = pFont->m_FaceName; 1598 name = pFont->m_FaceName;
1612 return TRUE; 1599 return TRUE;
1613 } 1600 }
1614 FX_BOOL CFX_FolderFontInfo::GetFontCharset(void* hFont, int& charset) 1601 FX_BOOL CFX_FolderFontInfo::GetFontCharset(void* hFont, int& charset)
1615 { 1602 {
1616 return FALSE; 1603 return FALSE;
1617 } 1604 }
OLDNEW
« no previous file with comments | « core/src/fpdfdoc/doc_basic.cpp ('k') | fpdfsdk/src/fxedit/fxet_pageobjs.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698