7#ifndef CORE_FXGE_SYSTEMFONTINFO_IFACE_H_
8#define CORE_FXGE_SYSTEMFONTINFO_IFACE_H_
13#include "core/fxcrt/bytestring.h"
14#include "core/fxcrt/fx_codepage_forward.h"
15#include "core/fxge/cfx_fontmapper.h"
16#include "third_party/base/containers/span.h"
30 const ByteString& face) = 0;
31 virtual void*
GetFont(
const ByteString& face) = 0;
34 pdfium::span<uint8_t> buffer) = 0;
FX_Charset GetCharset() const
ByteString GetFamilyName()
uint32_t GetFontData(uint32_t dwTable, pdfium::span< uint8_t > pBuffer)
void * MapFont(int weight, bool bItalic, FX_Charset charset, int pitch_family, const ByteString &face) override
bool GetFontCharset(void *hFont, FX_Charset *charset) override
~CFX_AndroidFontInfo() override
void DeleteFont(void *hFont) override
bool GetFaceName(void *hFont, ByteString *name) override
bool Init(CFPF_SkiaFontMgr *pFontMgr)
size_t GetFontData(void *hFont, uint32_t table, pdfium::span< uint8_t > buffer) override
void * GetFont(const ByteString &face) override
bool EnumFontList(CFX_FontMapper *pMapper) override
static constexpr uint32_t MakeTag(char c1, char c2, char c3, char c4)
virtual void * GetFont(const ByteString &face)=0
virtual ~SystemFontInfoIface()=default
virtual bool GetFontCharset(void *hFont, FX_Charset *charset)=0
virtual bool GetFaceName(void *hFont, ByteString *name)=0
virtual bool EnumFontList(CFX_FontMapper *pMapper)=0
virtual void DeleteFont(void *hFont)=0
virtual void * MapFont(int weight, bool bItalic, FX_Charset charset, int pitch_family, const ByteString &face)=0
virtual size_t GetFontData(void *hFont, uint32_t table, pdfium::span< uint8_t > buffer)=0
ByteString & operator=(ByteString &&that) noexcept
bool FontFamilyIsFixedPitch(uint32_t family)
bool FontFamilyIsScript(int32_t family)
bool FontFamilyIsRoman(uint32_t family)
#define FXFONT_FORCE_BOLD
#define FXFONT_FIXED_PITCH
constexpr uint32_t kTableTTCF
constexpr uint32_t kTableNAME