Lines Matching refs:family

57 struct family {
76 status_t StyleAt(font_family family, int32 index,
81 int32 CountStyles(font_family family);
87 family* _FindFamily(font_family name);
91 BObjectList<family> fFamilies;
92 family* fLastFamily;
110 compare_families(const family* a, const family* b)
159 ::family* family = fFamilies.ItemAt(index);
160 if (family == NULL)
163 memcpy(*_family, family->name.String(), family->name.Length() + 1);
165 *_flags = family->flags;
180 ::family* family = _FindFamily(familyName);
181 if (family == NULL)
184 ::style* style = family->styles.ItemAt(index);
214 ::family* family = _FindFamily(familyName);
215 if (family == NULL)
218 return family->styles.CountItems();
248 ::family* family = new (nothrow) ::family;
249 if (family == NULL)
252 link.ReadString(family->name);
253 link.Read<uint32>(&family->flags);
261 delete family;
269 family->styles.AddItem(style);
272 fFamilies.BinaryInsert(family, compare_families);
313 family*
319 ::family family;
320 family.name = name;
321 fLastFamily = const_cast< ::family*>(fFamilies.BinarySearch(family,
399 _set_system_font_(const char* which, font_family family, font_style style,
408 link.AttachString(family, sizeof(font_family));
416 _get_system_default_font_(const char* which, font_family family,
429 link.ReadString(family, sizeof(font_family));
444 // Returns the number of styles available for a font family
446 count_font_styles(font_family family)
448 return FontList::Default()->CountStyles(family);
452 // Retrieves the family name at the specified index
463 // Retrieves the family name at the specified index
465 get_font_style(font_family family, int32 index, font_style* _name,
468 return get_font_style(family, index, _name, NULL, _flags);
472 // Retrieves the family name at the specified index
474 get_font_style(font_family family, int32 index, font_style* _name,
484 return FontList::Default()->StyleAt(family, index, _name, _face, _flags);
488 // Updates the font family list
539 // Sets the font's family and style all at once
541 BFont::SetFamilyAndStyle(const font_family family, const font_style style)
543 if (family == NULL && style == NULL)
549 link.AttachString(family, sizeof(font_family));
570 // Sets the font's family and style all at once
580 uint16 family, style;
582 family = (code & 0xFFFF0000) >> 16;
586 link.AttachString(NULL); // no family and style name
588 link.Attach<uint16>(family);
604 // Sets the font's family and face all at once
606 BFont::SetFamilyAndFace(const font_family family, uint16 face)
609 // i.e. passing a nonexistent family will cause only the face to be set.
610 // Additionally, if a particular face does not exist in a family, the
615 link.AttachString(family, sizeof(font_family));
698 BFont::GetFamilyAndStyle(font_family* family, font_style* style) const
700 if (family == NULL && style == NULL)
703 // it's okay to call this function with either family or style set to NULL
708 if (family == NULL)
709 family = &familyBuffer;
721 memset(*family, 0, sizeof(font_family));
726 link.ReadString(*family, sizeof(font_family));
1424 font_family family;
1426 GetFamilyAndStyle(&family, &style);
1429 family, fFamilyID, style, fStyleID, fFace, fShear, fRotation, fSize,