Lines Matching refs:familyRec
62 struct FamilyRec {
63 FamilyRec() {
118 SkTArray<FamilyRec> fFontFamilies;
206 fFontFamilies(fontFamilies.count() / FamilyRec::FONT_STYLE_COUNT),
216 // defer initializing the familyRec until we can be sure that at least
218 FamilyRec* familyRec = NULL;
260 // create a familyRec now that we know that at least one font in
262 if (familyRec == NULL) {
263 familyRec = &fFontFamilies.push_back();
267 familyRec->fIsFallbackFont = family->fIsFallbackFont;
268 familyRec->fPaintOptions = family->fFontFiles[j]->fPaintOptions;
270 } else if (familyRec->fPaintOptions != family->fFontFiles[j]->fPaintOptions) {
276 // add this font to the current familyRec
277 if (INVALID_FONT_REC_ID != familyRec->fFontRecID[fontRec.fStyle]) {
278 DEBUG_FONT(("Overwriting familyRec for style[%d] old,new:(%d,%d)",
279 fontRec.fStyle, familyRec->fFontRecID[fontRec.fStyle],
282 familyRec->fFontRecID[fontRec.fStyle] = fontRecID;
285 if (familyRec) {
286 if (familyRec->fIsFallbackFont) {
342 FamilyRec& familyRec = fFontFamilies[familyRecID];
343 SkASSERT(familyRec.fIsFallbackFont);
349 familyRec.fFallbackName.printf("%.2x##fallback", familyRecID);
350 insert_into_name_dict(fFamilyNameDict, familyRec.fFallbackName.c_str(), familyRecID);
356 const SkString& languageTag = familyRec.fPaintOptions.getLanguage().getTag();
373 static FontRecID find_best_style(const FamilyRec& family, SkTypeface::Style style) {
390 for (int i = 0; i < FamilyRec::FONT_STYLE_COUNT; i++) {