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

Unified Diff: core/fpdfapi/fpdf_cmaps/Korea1/cmaps_korea1.cpp

Issue 2391013002: Move core/fpdfapi/fpdf_cmaps to core/fpdfapi/cmaps (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/fpdfapi/fpdf_cmaps/Korea1/cmaps_korea1.h ('k') | core/fpdfapi/fpdf_cmaps/cmap_int.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fpdfapi/fpdf_cmaps/Korea1/cmaps_korea1.cpp
diff --git a/core/fpdfapi/fpdf_cmaps/Korea1/cmaps_korea1.cpp b/core/fpdfapi/fpdf_cmaps/Korea1/cmaps_korea1.cpp
deleted file mode 100644
index 62f4a6ecfb63a064eb07b72e6af02eba843d475c..0000000000000000000000000000000000000000
--- a/core/fpdfapi/fpdf_cmaps/Korea1/cmaps_korea1.cpp
+++ /dev/null
@@ -1,50 +0,0 @@
-// 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/cpdf_modulemgr.h"
-#include "core/fpdfapi/fpdf_cmaps/cmap_int.h"
-#include "core/fpdfapi/fpdf_font/font_int.h"
-#include "core/fpdfapi/fpdf_page/cpdf_pagemodule.h"
-#include "core/fxcrt/fx_basic.h"
-
-static const FXCMAP_CMap g_FXCMAP_Korea1_cmaps[] = {
- {"KSC-EUC-H", FXCMAP_CMap::Range, g_FXCMAP_KSC_EUC_H_0, 467,
- FXCMAP_CMap::None, nullptr, 0, 0},
- {"KSC-EUC-V", FXCMAP_CMap::Range, g_FXCMAP_KSC_EUC_V_0, 16,
- FXCMAP_CMap::None, nullptr, 0, -1},
- {"KSCms-UHC-H", FXCMAP_CMap::Range, g_FXCMAP_KSCms_UHC_H_1, 675,
- FXCMAP_CMap::None, nullptr, 0, -2},
- {"KSCms-UHC-V", FXCMAP_CMap::Range, g_FXCMAP_KSCms_UHC_V_1, 16,
- FXCMAP_CMap::None, nullptr, 0, -1},
- {"KSCms-UHC-HW-H", FXCMAP_CMap::Range, g_FXCMAP_KSCms_UHC_HW_H_1, 675,
- FXCMAP_CMap::None, nullptr, 0, 0},
- {"KSCms-UHC-HW-V", FXCMAP_CMap::Range, g_FXCMAP_KSCms_UHC_HW_V_1, 16,
- FXCMAP_CMap::None, nullptr, 0, -1},
- {"KSCpc-EUC-H", FXCMAP_CMap::Range, g_FXCMAP_KSCpc_EUC_H_0, 509,
- FXCMAP_CMap::None, nullptr, 0, -6},
- {"UniKS-UCS2-H", FXCMAP_CMap::Range, g_FXCMAP_UniKS_UCS2_H_1, 8394,
- FXCMAP_CMap::None, nullptr, 0, 0},
- {"UniKS-UCS2-V", FXCMAP_CMap::Range, g_FXCMAP_UniKS_UCS2_V_1, 18,
- FXCMAP_CMap::None, nullptr, 0, -1},
- {"UniKS-UTF16-H", FXCMAP_CMap::Single, g_FXCMAP_UniKS_UTF16_H_0, 158,
- FXCMAP_CMap::None, nullptr, 0, -2},
- {"UniKS-UTF16-V", FXCMAP_CMap::Range, g_FXCMAP_UniKS_UCS2_V_1, 18,
- FXCMAP_CMap::None, nullptr, 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;
-}
« no previous file with comments | « core/fpdfapi/fpdf_cmaps/Korea1/cmaps_korea1.h ('k') | core/fpdfapi/fpdf_cmaps/cmap_int.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698