7#include "core/fxge/android/cfx_androidfontinfo.h"
9#include "core/fxcrt/fx_system.h"
10#include "core/fxge/android/cfpf_skiafont.h"
11#include "core/fxge/android/cfpf_skiafontmgr.h"
12#include "core/fxge/cfx_fontmapper.h"
13#include "core/fxge/fx_font.h"
20 const char** user_paths) {
25 m_pFontMgr = pFontMgr;
26 m_pFontMgr->LoadFonts(user_paths);
34void* CFX_AndroidFontInfo::
MapFont(
int weight,
53 return m_pFontMgr->CreateFont(face.AsStringView(), charset, dwStyle);
62 pdfium::span<uint8_t> buffer) {
65 return static_cast<
CFPF_SkiaFont*>(hFont)->GetFontData(table, buffer);
fxcrt::ByteString ByteString
FX_Charset GetCharset() const
ByteString GetFamilyName()
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 Init(CFPF_SkiaFontMgr *pFontMgr, const char **user_paths)
bool GetFaceName(void *hFont, ByteString *name) override
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
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