7#ifndef CORE_FPDFDOC_IPVT_FONTMAP_H_
8#define CORE_FPDFDOC_IPVT_FONTMAP_H_
12#include "core/fxcrt/bytestring.h"
13#include "core/fxcrt/fx_codepage_forward.h"
14#include "core/fxcrt/retain_ptr.h"
26 int32_t nFontIndex) = 0;
bool HasLocalizedFont(ByteStringView name) const
bool HasInstalledFont(ByteStringView name) const
void LoadInstalledFonts()
static bool IsStandardFontName(const ByteString &name)
CFX_FontMapper * GetBuiltinMapper() const
static ByteString GetDefaultFontNameByCharset(FX_Charset nCharset)
static const char kDefaultAnsiFontName[]
static const char kUniversalDefaultFontName[]
static FX_Charset GetCharSetFromUnicode(uint16_t word)
static CFX_GEModule * Get()
CFX_FontMgr * GetFontMgr() const
int32_t CharCodeFromUnicode(int32_t nFontIndex, uint16_t word) override
FX_Charset CharSetFromUnicode(uint16_t word, FX_Charset nOldCharset) override
RetainPtr< CPDF_Font > GetPDFFont(int32_t nFontIndex) override
~CPDF_BAFontMap() override
static FX_Charset GetNativeCharset()
CPDF_BAFontMap(CPDF_Document *pDocument, RetainPtr< CPDF_Dictionary > pAnnotDict, const ByteString &sAPType)
int32_t GetWordFontIndex(uint16_t word, FX_Charset nCharset, int32_t nFontIndex) override
ByteString GetPDFFontAlias(int32_t nFontIndex) override
CPDF_DefaultAppearance(const ByteString &csDA)
static CPDF_DocPageData * FromDocument(const CPDF_Document *pDoc)
CPDF_FontEncoding(FontEncoding predefined_encoding)
virtual int32_t GetWordFontIndex(uint16_t word, FX_Charset charset, int32_t nFontIndex)=0
virtual RetainPtr< CPDF_Font > GetPDFFont(int32_t nFontIndex)=0
virtual int32_t CharCodeFromUnicode(int32_t nFontIndex, uint16_t word)=0
virtual ByteString GetPDFFontAlias(int32_t nFontIndex)=0
virtual ~IPVT_FontMap()=default
virtual FX_Charset CharSetFromUnicode(uint16_t word, FX_Charset nOldCharset)=0
static ByteString Format(const char *pFormat,...)
ByteString & operator+=(const ByteString &str)
bool operator==(const char *ptr) const
ByteString & operator=(ByteString &&that) noexcept
FX_CodePage FX_GetCodePageFromCharset(FX_Charset charset)
FX_Charset FX_GetCharsetFromCodePage(FX_CodePage codepage)