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

Side by Side Diff: core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp

Issue 1060813003: Set m_FontType in CPDF_Font() constructor. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Address comments, also add |override| to destructors. Created 5 years, 8 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/fpdfapi/fpdf_font/fpdf_font.cpp ('k') | no next file » | 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/fpdfapi/fpdf_module.h" 7 #include "../../../include/fpdfapi/fpdf_module.h"
8 #include "../../../include/fpdfapi/fpdf_page.h" 8 #include "../../../include/fpdfapi/fpdf_page.h"
9 #include "font_int.h" 9 #include "font_int.h"
10 #include "../fpdf_cmaps/cmap_int.h" 10 #include "../fpdf_cmaps/cmap_int.h"
(...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after
686 } 686 }
687 return 0; 687 return 0;
688 } 688 }
689 void FPDFAPI_LoadCID2UnicodeMap(int charset, const FX_WORD*& pMap, FX_DWORD& cou nt); 689 void FPDFAPI_LoadCID2UnicodeMap(int charset, const FX_WORD*& pMap, FX_DWORD& cou nt);
690 void CPDF_CID2UnicodeMap::Load(CPDF_CMapManager* pMgr, int charset, FX_BOOL bPro mptCJK) 690 void CPDF_CID2UnicodeMap::Load(CPDF_CMapManager* pMgr, int charset, FX_BOOL bPro mptCJK)
691 { 691 {
692 m_Charset = charset; 692 m_Charset = charset;
693 FPDFAPI_LoadCID2UnicodeMap(charset, m_pEmbeddedMap, m_EmbeddedCount); 693 FPDFAPI_LoadCID2UnicodeMap(charset, m_pEmbeddedMap, m_EmbeddedCount);
694 } 694 }
695 #include "ttgsubtable.h" 695 #include "ttgsubtable.h"
696 CPDF_CIDFont::CPDF_CIDFont() 696 CPDF_CIDFont::CPDF_CIDFont() : CPDF_Font(PDFFONT_CIDFONT)
697 { 697 {
698 m_pCMap = NULL; 698 m_pCMap = NULL;
699 m_pAllocatedCMap = NULL; 699 m_pAllocatedCMap = NULL;
700 m_pCID2UnicodeMap = NULL; 700 m_pCID2UnicodeMap = NULL;
701 m_pAnsiWidths = NULL; 701 m_pAnsiWidths = NULL;
702 m_pCIDToGIDMap = NULL; 702 m_pCIDToGIDMap = NULL;
703 m_bCIDIsGID = FALSE; 703 m_bCIDIsGID = FALSE;
704 m_bAdobeCourierStd = FALSE; 704 m_bAdobeCourierStd = FALSE;
705 m_pTTGSUBTable = NULL; 705 m_pTTGSUBTable = NULL;
706 FXSYS_memset8(m_CharBBox, 0xff, 256 * sizeof(FX_SMALL_RECT)); 706 FXSYS_memset8(m_CharBBox, 0xff, 256 * sizeof(FX_SMALL_RECT));
(...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after
1592 if (middlecode > CID) { 1592 if (middlecode > CID) {
1593 end = middle - 1; 1593 end = middle - 1;
1594 } else if (middlecode < CID) { 1594 } else if (middlecode < CID) {
1595 begin = middle + 1; 1595 begin = middle + 1;
1596 } else { 1596 } else {
1597 return &Japan1_VertCIDs[middle].a; 1597 return &Japan1_VertCIDs[middle].a;
1598 } 1598 }
1599 } 1599 }
1600 return NULL; 1600 return NULL;
1601 } 1601 }
OLDNEW
« no previous file with comments | « core/src/fpdfapi/fpdf_font/fpdf_font.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698