diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2016-03-14 13:35:12 -0400 |
---|---|---|
committer | Dan Sinclair <dsinclair@chromium.org> | 2016-03-14 13:35:12 -0400 |
commit | 764ec513eecbebd12781bcc96ce81ed5e736ee92 (patch) | |
tree | 12763fde4be1f10ea1183d92185917b2b587e00b /core/fpdfapi/fpdf_cmaps/Korea1/cmaps_korea1.cpp | |
parent | 97da97662417085774f75c26e535c6fbe70266ae (diff) | |
download | pdfium-764ec513eecbebd12781bcc96ce81ed5e736ee92.tar.xz |
Move core/src/ up to core/.
This CL moves the core/src/ files up to core/ and fixes up the include guards,
includes and build files.
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1800523005 .
Diffstat (limited to 'core/fpdfapi/fpdf_cmaps/Korea1/cmaps_korea1.cpp')
-rw-r--r-- | core/fpdfapi/fpdf_cmaps/Korea1/cmaps_korea1.cpp | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/core/fpdfapi/fpdf_cmaps/Korea1/cmaps_korea1.cpp b/core/fpdfapi/fpdf_cmaps/Korea1/cmaps_korea1.cpp new file mode 100644 index 0000000000..e5072104d6 --- /dev/null +++ b/core/fpdfapi/fpdf_cmaps/Korea1/cmaps_korea1.cpp @@ -0,0 +1,50 @@ +// Copyright 2014 PDFium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com + +#include "core/fpdfapi/fpdf_cmaps/Korea1/cmaps_korea1.h" + +#include "core/fpdfapi/fpdf_cmaps/cmap_int.h" +#include "core/fpdfapi/fpdf_font/font_int.h" +#include "core/include/fpdfapi/fpdf_module.h" +#include "core/include/fpdfapi/fpdf_resource.h" +#include "core/include/fxcrt/fx_basic.h" // For FX_ArraySize(). + +static const FXCMAP_CMap g_FXCMAP_Korea1_cmaps[] = { + {"KSC-EUC-H", FXCMAP_CMap::Range, g_FXCMAP_KSC_EUC_H_0, 467, + FXCMAP_CMap::None, NULL, 0, 0}, + {"KSC-EUC-V", FXCMAP_CMap::Range, g_FXCMAP_KSC_EUC_V_0, 16, + FXCMAP_CMap::None, NULL, 0, -1}, + {"KSCms-UHC-H", FXCMAP_CMap::Range, g_FXCMAP_KSCms_UHC_H_1, 675, + FXCMAP_CMap::None, NULL, 0, -2}, + {"KSCms-UHC-V", FXCMAP_CMap::Range, g_FXCMAP_KSCms_UHC_V_1, 16, + FXCMAP_CMap::None, NULL, 0, -1}, + {"KSCms-UHC-HW-H", FXCMAP_CMap::Range, g_FXCMAP_KSCms_UHC_HW_H_1, 675, + FXCMAP_CMap::None, NULL, 0, 0}, + {"KSCms-UHC-HW-V", FXCMAP_CMap::Range, g_FXCMAP_KSCms_UHC_HW_V_1, 16, + FXCMAP_CMap::None, NULL, 0, -1}, + {"KSCpc-EUC-H", FXCMAP_CMap::Range, g_FXCMAP_KSCpc_EUC_H_0, 509, + FXCMAP_CMap::None, NULL, 0, -6}, + {"UniKS-UCS2-H", FXCMAP_CMap::Range, g_FXCMAP_UniKS_UCS2_H_1, 8394, + FXCMAP_CMap::None, NULL, 0, 0}, + {"UniKS-UCS2-V", FXCMAP_CMap::Range, g_FXCMAP_UniKS_UCS2_V_1, 18, + FXCMAP_CMap::None, NULL, 0, -1}, + {"UniKS-UTF16-H", FXCMAP_CMap::Single, g_FXCMAP_UniKS_UTF16_H_0, 158, + FXCMAP_CMap::None, NULL, 0, -2}, + {"UniKS-UTF16-V", FXCMAP_CMap::Range, g_FXCMAP_UniKS_UCS2_V_1, 18, + FXCMAP_CMap::None, NULL, 0, -1}, +}; + +void CPDF_ModuleMgr::LoadEmbeddedKorea1CMaps() { + CPDF_FontGlobals* pFontGlobals = + CPDF_ModuleMgr::Get()->GetPageModule()->GetFontGlobals(); + pFontGlobals->m_EmbeddedCharsets[CIDSET_KOREA1].m_pMapList = + g_FXCMAP_Korea1_cmaps; + pFontGlobals->m_EmbeddedCharsets[CIDSET_KOREA1].m_Count = + FX_ArraySize(g_FXCMAP_Korea1_cmaps); + pFontGlobals->m_EmbeddedToUnicodes[CIDSET_KOREA1].m_pMap = + g_FXCMAP_Korea1CID2Unicode_2; + pFontGlobals->m_EmbeddedToUnicodes[CIDSET_KOREA1].m_Count = 18352; +} |