• Home
  • Raw
  • Download

Lines Matching refs:family

47     void construct(const char name[], FamilyRec* family)  in construct()
50 fFamily = family; // we don't own this, so just record the referene in construct()
79 static SkTypeface* find_best_face(const FamilyRec* family, in find_best_face() argument
81 SkTypeface* const* faces = family->fFaces; in find_best_face()
141 FamilyRec* family = find_family(face); in remove_from_family() local
142 SkASSERT(family->fFaces[face->style()] == face); in remove_from_family()
143 family->fFaces[face->style()] = NULL; in remove_from_family()
146 if (family->fFaces[i] != NULL) { // family is non-empty in remove_from_family()
150 return family; // return the empty family in remove_from_family()
154 static void detach_and_delete_family(FamilyRec* family) { in detach_and_delete_family() argument
160 if (curr == family) { in detach_and_delete_family()
166 SkDELETE(family); in detach_and_delete_family()
189 const FamilyRec* family = find_family(familyMember); in find_typeface() local
190 return family ? find_best_face(family, style) : NULL; in find_typeface()
193 static void add_name(const char name[], FamilyRec* family) { in add_name() argument
204 list->construct(name, family); in add_name()
231 FamilyTypeface(Style style, bool sysFont, FamilyRec* family, bool isFixedWidth) in FamilyTypeface() argument
237 if (NULL == family) { in FamilyTypeface()
238 family = SkNEW(FamilyRec); in FamilyTypeface()
240 family->fFaces[style] = this; in FamilyTypeface()
241 fFamilyRec = family; // just record it so we can return it if asked in FamilyTypeface()
249 FamilyRec* family = remove_from_family(this); in ~FamilyTypeface() local
250 if (NULL != family) { in ~FamilyTypeface()
251 remove_from_names(family); in ~FamilyTypeface()
252 detach_and_delete_family(family); in ~FamilyTypeface()
289 StreamTypeface(Style style, bool sysFont, FamilyRec* family, in StreamTypeface() argument
291 : INHERITED(style, sysFont, family, isFixedWidth) { in StreamTypeface()
316 FileTypeface(Style style, bool sysFont, FamilyRec* family, in FileTypeface() argument
318 : INHERITED(style, sysFont, family, isFixedWidth) { in FileTypeface()
405 FamilyRec* family = find_familyrec(realname.c_str()); in load_system_fonts() local
406 if (family && family->fFaces[style]) { in load_system_fonts()
416 family, // what family to join in load_system_fonts()
421 if (NULL == family) { in load_system_fonts()