OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |