blob: c66b8a92f90b585572137cf24aef1343c75ea11c [file] [log] [blame]
// Copyright 2017 The PDFium Authors
// 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"
#include "core/fxcrt/raw_span.h"
class CPDF_CID2UnicodeMap {
public:
explicit CPDF_CID2UnicodeMap(CIDSet charset);
~CPDF_CID2UnicodeMap();
bool IsLoaded() const;
wchar_t UnicodeFromCID(uint16_t cid) const;
private:
const CIDSet charset_;
const pdfium::raw_span<const uint16_t> embedded_map_;
};
#endif // CORE_FPDFAPI_FONT_CPDF_CID2UNICODEMAP_H_