#include "core/fpdfdoc/cpvt_fontmap.h"
#include <utility>
#include "core/fpdfapi/font/cpdf_font.h"
#include "core/fpdfapi/parser/cpdf_dictionary.h"
#include "core/fpdfapi/parser/cpdf_document.h"
#include "core/fpdfapi/parser/cpdf_reference.h"
#include "core/fpdfapi/parser/fpdf_parser_utility.h"
#include "core/fpdfdoc/cpdf_interactiveform.h"
#include "core/fxcrt/check.h"
#include "core/fxcrt/fx_codepage.h"
#include "core/fxcrt/notreached.h"
CPVT_FontMap::CPVT_FontMap(CPDF_Document* pDoc,
RetainPtr<CPDF_Dictionary> pResDict,
RetainPtr<CPDF_Font> pDefFont,
const ByteString& sDefFontAlias)
: … { … }
CPVT_FontMap::~CPVT_FontMap() = default;
void CPVT_FontMap::SetupAnnotSysPDFFont() { … }
RetainPtr<CPDF_Font> CPVT_FontMap::GetPDFFont(int32_t nFontIndex) { … }
ByteString CPVT_FontMap::GetPDFFontAlias(int32_t nFontIndex) { … }
int32_t CPVT_FontMap::GetWordFontIndex(uint16_t word,
FX_Charset charset,
int32_t nFontIndex) { … }
int32_t CPVT_FontMap::CharCodeFromUnicode(int32_t nFontIndex, uint16_t word) { … }
FX_Charset CPVT_FontMap::CharSetFromUnicode(uint16_t word,
FX_Charset nOldCharset) { … }