1 // Copyright 2017 PDFium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6 7 #ifndef CORE_FPDFAPI_FONT_CPDF_CID2UNICODEMAP_H_ 8 #define CORE_FPDFAPI_FONT_CPDF_CID2UNICODEMAP_H_ 9 10 #include "core/fpdfapi/font/cpdf_cidfont.h" 11 12 class CPDF_CMapManager; 13 14 class CPDF_CID2UnicodeMap { 15 public: 16 CPDF_CID2UnicodeMap(); 17 ~CPDF_CID2UnicodeMap(); 18 19 bool IsLoaded(); 20 void Load(CPDF_CMapManager* pMgr, CIDSet charset, bool bPromptCJK); 21 wchar_t UnicodeFromCID(uint16_t CID); 22 23 private: 24 CIDSet m_Charset; 25 const uint16_t* m_pEmbeddedMap; 26 uint32_t m_EmbeddedCount; 27 }; 28 29 #endif // CORE_FPDFAPI_FONT_CPDF_CID2UNICODEMAP_H_ 30