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

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

Issue 1243243003: Merge to XFA: Move extern fpdf_font_charset.cpp function prototypes. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 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/fpdfapi/fpdf_font/fpdf_font_charset.cpp ('k') | core/src/fpdftext/fpdf_text.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/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 "../../../include/fpdfapi/fpdf_resource.h"
10 #include "../../../include/fxge/fx_freetype.h"
11 #include "../../../include/fxge/fx_ge.h"
12 #include "../fpdf_cmaps/cmap_int.h"
9 #include "font_int.h" 13 #include "font_int.h"
10 #include "../fpdf_cmaps/cmap_int.h" 14
11 #include "../../../include/fxge/fx_ge.h"
12 #include "../../../include/fxge/fx_freetype.h"
13 extern FX_DWORD FT_CharCodeFromUnicode(int encoding, FX_WCHAR unicode);
14 extern short TT2PDF(int m, FXFT_Face face); 15 extern short TT2PDF(int m, FXFT_Face face);
15 extern FX_BOOL FT_UseTTCharmap(FXFT_Face face, int platform_id, int encoding_id) ; 16 extern FX_BOOL FT_UseTTCharmap(FXFT_Face face, int platform_id, int encoding_id) ;
16 extern const FX_CHAR* GetAdobeCharName(int iBaseEncoding, const CFX_ByteString* pCharNames, int charcode); 17
17 CPDF_CMapManager::CPDF_CMapManager() 18 CPDF_CMapManager::CPDF_CMapManager()
18 { 19 {
19 m_bPrompted = FALSE; 20 m_bPrompted = FALSE;
20 FXSYS_memset(m_CID2UnicodeMaps, 0, sizeof m_CID2UnicodeMaps); 21 FXSYS_memset(m_CID2UnicodeMaps, 0, sizeof m_CID2UnicodeMaps);
21 } 22 }
22 CPDF_CMapManager::~CPDF_CMapManager() 23 CPDF_CMapManager::~CPDF_CMapManager()
23 { 24 {
24 DropAll(FALSE); 25 DropAll(FALSE);
25 } 26 }
26 CPDF_CMap* CPDF_CMapManager::GetPredefinedCMap(const CFX_ByteString& name, FX_BO OL bPromptCJK) 27 CPDF_CMap* CPDF_CMapManager::GetPredefinedCMap(const CFX_ByteString& name, FX_BO OL bPromptCJK)
(...skipping 1557 matching lines...) Expand 10 before | Expand all | Expand 10 after
1584 if (middlecode > CID) { 1585 if (middlecode > CID) {
1585 end = middle - 1; 1586 end = middle - 1;
1586 } else if (middlecode < CID) { 1587 } else if (middlecode < CID) {
1587 begin = middle + 1; 1588 begin = middle + 1;
1588 } else { 1589 } else {
1589 return &Japan1_VertCIDs[middle].a; 1590 return &Japan1_VertCIDs[middle].a;
1590 } 1591 }
1591 } 1592 }
1592 return NULL; 1593 return NULL;
1593 } 1594 }
OLDNEW
« no previous file with comments | « core/src/fpdfapi/fpdf_font/fpdf_font_charset.cpp ('k') | core/src/fpdftext/fpdf_text.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698