Flutter Engine
The Flutter Engine
Functions | Variables
lmpParser Namespace Reference

Functions

static FontFamilyfind_family (FamilyData *self, const SkString &familyName)
 

Variables

static const TagHandler axisHandler
 
static const TagHandler fontHandler
 
static const TagHandler familyHandler
 
static const TagHandler aliasHandler
 
static const TagHandler familySetHandler
 

Function Documentation

◆ find_family()

static FontFamily * lmpParser::find_family ( FamilyData self,
const SkString familyName 
)
static

Definition at line 329 of file SkFontMgr_android_parser.cpp.

329 {
330 for (int i = 0; i < self->fFamilies.size(); i++) {
331 FontFamily* candidate = self->fFamilies[i];
332 for (int j = 0; j < candidate->fNames.size(); j++) {
333 if (candidate->fNames[j] == familyName) {
334 return candidate;
335 }
336 }
337 }
338 return nullptr;
339}
int size() const
Definition: SkTArray.h:421
skia_private::TArray< SkString, true > fNames

Variable Documentation

◆ aliasHandler

const TagHandler lmpParser::aliasHandler
static

Definition at line 341 of file SkFontMgr_android_parser.cpp.

◆ axisHandler

const TagHandler lmpParser::axisHandler
static

Definition at line 174 of file SkFontMgr_android_parser.cpp.

◆ familyHandler

const TagHandler lmpParser::familyHandler
static

Definition at line 288 of file SkFontMgr_android_parser.cpp.

◆ familySetHandler

const TagHandler lmpParser::familySetHandler
static
Initial value:
= {
[](FamilyData* self, const char* tag, const char** attributes) { },
nullptr,
[](FamilyData* self, const char* tag, const char** attributes) -> const TagHandler* {
size_t len = strlen(tag);
if (MEMEQ("family", tag, len)) {
return &familyHandler;
} else if (MEMEQ("alias", tag, len)) {
return &aliasHandler;
}
return nullptr;
},
nullptr,
}
#define MEMEQ(c, s, n)
static const TagHandler familyHandler
static const TagHandler aliasHandler

Definition at line 395 of file SkFontMgr_android_parser.cpp.

◆ fontHandler

const TagHandler lmpParser::fontHandler
static

Definition at line 222 of file SkFontMgr_android_parser.cpp.