blob: 472cba28558c1823e514d60bce25d0782591a73d [file] [log] [blame]
// Copyright 2016 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_FPDFDOC_IPVT_FONTMAP_H_
#define CORE_FPDFDOC_IPVT_FONTMAP_H_
#include <stdint.h>
#include "core/fxcrt/fx_codepage_forward.h"
#include "core/fxcrt/fx_string.h"
#include "core/fxcrt/retain_ptr.h"
class CPDF_Font;
class IPVT_FontMap {
public:
virtual ~IPVT_FontMap() = default;
virtual RetainPtr<CPDF_Font> GetPDFFont(int32_t nFontIndex) = 0;
virtual ByteString GetPDFFontAlias(int32_t nFontIndex) = 0;
virtual int32_t GetWordFontIndex(uint16_t word,
FX_Charset charset,
int32_t nFontIndex) = 0;
virtual int32_t CharCodeFromUnicode(int32_t nFontIndex, uint16_t word) = 0;
virtual FX_Charset CharSetFromUnicode(uint16_t word,
FX_Charset nOldCharset) = 0;
};
#endif // CORE_FPDFDOC_IPVT_FONTMAP_H_