summaryrefslogtreecommitdiff
path: root/core/fpdfapi/font/cpdf_cid2unicodemap.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/fpdfapi/font/cpdf_cid2unicodemap.h')
-rw-r--r--core/fpdfapi/font/cpdf_cid2unicodemap.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/core/fpdfapi/font/cpdf_cid2unicodemap.h b/core/fpdfapi/font/cpdf_cid2unicodemap.h
new file mode 100644
index 0000000000..2c3fe5b7aa
--- /dev/null
+++ b/core/fpdfapi/font/cpdf_cid2unicodemap.h
@@ -0,0 +1,29 @@
+// Copyright 2017 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
+
+#ifndef CORE_FPDFAPI_FONT_CPDF_CID2UNICODEMAP_H_
+#define CORE_FPDFAPI_FONT_CPDF_CID2UNICODEMAP_H_
+
+#include "core/fpdfapi/font/cpdf_cidfont.h"
+
+class CPDF_CMapManager;
+
+class CPDF_CID2UnicodeMap {
+ public:
+ CPDF_CID2UnicodeMap();
+ ~CPDF_CID2UnicodeMap();
+
+ bool IsLoaded();
+ void Load(CPDF_CMapManager* pMgr, CIDSet charset, bool bPromptCJK);
+ wchar_t UnicodeFromCID(uint16_t CID);
+
+ private:
+ CIDSet m_Charset;
+ const uint16_t* m_pEmbeddedMap;
+ uint32_t m_EmbeddedCount;
+};
+
+#endif // CORE_FPDFAPI_FONT_CPDF_CID2UNICODEMAP_H_