• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #include "third_party/base/span.h"
12 
13 class CPDF_CID2UnicodeMap {
14  public:
15   explicit CPDF_CID2UnicodeMap(CIDSet charset);
16   ~CPDF_CID2UnicodeMap();
17 
18   bool IsLoaded() const;
19   wchar_t UnicodeFromCID(uint16_t cid) const;
20 
21  private:
22   const CIDSet m_Charset;
23   const pdfium::span<const uint16_t> m_pEmbeddedMap;
24 };
25 
26 #endif  // CORE_FPDFAPI_FONT_CPDF_CID2UNICODEMAP_H_
27