Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
FontFamily Struct Reference

#include <SkFontMgr_android_parser.h>

Public Member Functions

 FontFamily (const SkString &basePath, bool isFallbackFont)
 

Public Attributes

skia_private::TArray< SkString, truefNames
 
skia_private::TArray< FontFileInfo, truefFonts
 
skia_private::TArray< SkLanguage, truefLanguages
 
skia_private::THashMap< SkString, std::unique_ptr< FontFamily > > fallbackFamilies
 
FontVariant fVariant
 
int fOrder
 
bool fIsFallbackFont
 
SkString fFallbackFor
 
const SkString fBasePath
 

Detailed Description

A font family provides one or more names for a collection of fonts, each of which has a different style (normal, italic) or weight (thin, light, bold, etc). Some fonts may occur in compact variants for use in the user interface. Android distinguishes "fallback" fonts to support non-ASCII character sets.

Definition at line 86 of file SkFontMgr_android_parser.h.

Constructor & Destructor Documentation

◆ FontFamily()

FontFamily::FontFamily ( const SkString basePath,
bool  isFallbackFont 
)
inline

Definition at line 87 of file SkFontMgr_android_parser.h.

89 , fOrder(-1)
90 , fIsFallbackFont(isFallbackFont)
91 , fBasePath(basePath)
92 { }
@ kDefault_FontVariant
const SkString fBasePath

Member Data Documentation

◆ fallbackFamilies

skia_private::THashMap<SkString, std::unique_ptr<FontFamily> > FontFamily::fallbackFamilies

Definition at line 97 of file SkFontMgr_android_parser.h.

◆ fBasePath

const SkString FontFamily::fBasePath

Definition at line 102 of file SkFontMgr_android_parser.h.

◆ fFallbackFor

SkString FontFamily::fFallbackFor

Definition at line 101 of file SkFontMgr_android_parser.h.

◆ fFonts

skia_private::TArray<FontFileInfo, true> FontFamily::fFonts

Definition at line 95 of file SkFontMgr_android_parser.h.

◆ fIsFallbackFont

bool FontFamily::fIsFallbackFont

Definition at line 100 of file SkFontMgr_android_parser.h.

◆ fLanguages

skia_private::TArray<SkLanguage, true> FontFamily::fLanguages

Definition at line 96 of file SkFontMgr_android_parser.h.

◆ fNames

skia_private::TArray<SkString, true> FontFamily::fNames

Definition at line 94 of file SkFontMgr_android_parser.h.

◆ fOrder

int FontFamily::fOrder

Definition at line 99 of file SkFontMgr_android_parser.h.

◆ fVariant

FontVariant FontFamily::fVariant

Definition at line 98 of file SkFontMgr_android_parser.h.


The documentation for this struct was generated from the following file: