Home | History | Annotate | Download | only in ports

Lines Matching refs:family

38 /*  This guy holds a mapping of a name -> family, used for looking up fonts.
47 void construct(const char name[], FamilyRec* family) {
49 fFamily = family; // we don't own this, so just record the referene
54 // we don't own family, so just ignore our reference
78 static SkTypeface* find_best_face(const FamilyRec* family,
80 SkTypeface* const* faces = family->fFaces;
135 /* Remove reference to this face from its family. If the resulting family
136 is empty (has no faces), return that family, otherwise return NULL
139 FamilyRec* family = find_family(face);
140 SkASSERT(family->fFaces[face->style()] == face);
141 family->fFaces[face->style()] = NULL;
144 if (family->fFaces[i] != NULL) { // family is non-empty
148 return family; // return the empty family
152 static void detach_and_delete_family(FamilyRec* family) {
158 if (curr == family) {
164 SkDELETE(family);
170 SkDEBUGFAIL("Yikes, couldn't find family in our list to remove/delete");
187 const FamilyRec* family = find_family(familyMember);
188 return family ? find_best_face(family, style) : NULL;
191 static void add_name(const char name[], FamilyRec* family) {
202 list->construct(name, family);
249 // remove us from our family. If the family is now empty, we return
250 // that and then remove that family from the name list
251 FamilyRec* family = remove_from_family(this);
252 if (NULL != family) {
253 remove_from_names(family);
254 detach_and_delete_family(family);
395 /* Fonts must be grouped by family, with the first font in a family having the
434 // if we're the first in a new family, clear firstInFamily
451 firstInFamily, // what family to join
464 FamilyRec* family = find_family(tf);
467 // record the default family if this is it
469 gDefaultFamily = family;
471 // add the names to map to this family
473 add_name(*names, family);