7#ifndef CORE_FXGE_CFX_FONTCACHE_H_
8#define CORE_FXGE_CFX_FONTCACHE_H_
12#include "core/fxcrt/fx_system.h"
13#include "core/fxcrt/retain_ptr.h"
14#include "core/fxge/cfx_glyphcache.h"
24#if defined(PDF_USE_SKIA)
29 std::map<CFX_Face*, ObservedPtr<CFX_GlyphCache>> m_GlyphCacheMap;
30 std::map<CFX_Face*, ObservedPtr<CFX_GlyphCache>> m_ExtGlyphCacheMap;
RetainPtr< CFX_GlyphCache > GetGlyphCache(const CFX_Font *pFont)
static ByteString GetDefaultFontNameByCharset(FX_Charset nCharset)
int GetSubstFontItalicAngle() const
int GetGlyphWidth(uint32_t glyph_index, int dest_width, int weight) const
const CFX_GlyphBitmap * LoadGlyphBitmap(uint32_t glyph_index, bool bFontStyle, const CFX_Matrix &matrix, int dest_width, int anti_alias, CFX_TextRenderOptions *text_options) const
const CFX_Path * LoadGlyphPath(uint32_t glyph_index, int dest_width) const
absl::optional< FX_RECT > GetBBox() const
int GetGlyphWidth(uint32_t glyph_index) const
static const CharsetFontMap kDefaultTTFMap[]
std::unique_ptr< CFX_Path > LoadGlyphPathImpl(uint32_t glyph_index, int dest_width) const
absl::optional< FX_RECT > GetRawBBox() const
ByteString GetPsName() const
ByteString GetBaseFontName() const
absl::optional< FX_RECT > GetGlyphBBox(uint32_t glyph_index)
bool IsFixedWidth() const
bool LoadEmbedded(pdfium::span< const uint8_t > src_span, bool force_vertical, uint64_t object_tag)
int GetGlyphWidthImpl(uint32_t glyph_index, int dest_width, int weight) const
static const char kDefaultAnsiFontName[]
ByteString GetFaceName() const
static const char kUniversalDefaultFontName[]
static FX_Charset GetCharSetFromUnicode(uint16_t word)
static const char kUntitledFontName[]
void LoadSubst(const ByteString &face_name, bool bTrueType, uint32_t flags, int weight, int italic_angle, FX_CodePage code_page, bool bVertical)
CFX_SubstFont * GetSubstFont() const
ByteString GetFamilyName() const
ByteString & operator+=(const ByteString &str)
ByteString & operator=(const char *str)
bool operator!=(const char *ptr) const
#define FXFT_Get_Glyph_Width(face)
#define FXFT_Get_Glyph_Height(face)
#define FXFT_Get_Glyph_HoriBearingX(face)
#define FXFT_Get_Glyph_HoriBearingY(face)
ByteString operator+(const char *str1, const ByteString &str2)