Lines Matching refs:style

56 	BString		style;
65 FontStyle* style = styles.ItemAt(i);
67 if (nodeRef == style->NodeRef())
68 return style;
236 FontStyle* style = directory->styles.ItemAt(i);
237 style->UpdatePath(directory->directory);
244 // find style in source and move it to the target
246 FontStyle* style = fromDirectory->FindStyle(nodeRef);
247 if (style != NULL) {
248 fromDirectory->styles.RemoveItem(style, false);
249 directory->styles.AddItem(style);
250 style->UpdatePath(directory->directory);
265 // remove font style from directory
286 // remove font style from directory
305 FontManager::_AddDefaultMapping(const char* family, const char* style,
313 mapping->style = style;
355 FTRACE(("_AddMappedFont(family = \"%s\", style = \"%s\")\n",
362 if (styleName != NULL && mapping->style != styleName)
393 /*! \brief Removes the style from the font directory.
395 It doesn't necessary delete the font style, if it's still
399 FontManager::_RemoveStyle(font_directory& directory, FontStyle* style)
401 FTRACE(("font removed: %s\n", style->Name()));
403 directory.styles.RemoveItem(style);
406 fStyleHashTable.RemoveItem(*style);
408 style->Release();
415 // remove font style from directory
422 // find style in directory and remove it
424 FontStyle* style = directory->FindStyle(nodeRef);
425 if (style != NULL)
426 _RemoveStyle(*directory, style);
438 FontStyle* style = GetStyle(familyName, styleName);
439 if (style == NULL) {
440 style = GetStyle(fallbackFamily, fallbackStyle);
441 if (style == NULL) {
442 style = FindStyleMatchingFace(fallbackFace);
443 if (style == NULL && FamilyAt(0) != NULL)
444 style = FamilyAt(0)->StyleAt(0);
448 return style;
453 ServerFont without specifying a style, as well as the default
460 FontStyle* style = _GetDefaultStyle(DEFAULT_PLAIN_FONT_FAMILY,
464 if (style == NULL)
467 fDefaultPlainFont = new (std::nothrow) ServerFont(*style,
473 style = _GetDefaultStyle(DEFAULT_BOLD_FONT_FAMILY, DEFAULT_BOLD_FONT_STYLE,
476 fDefaultBoldFont = new (std::nothrow) ServerFont(*style,
482 style = _GetDefaultStyle(DEFAULT_FIXED_FONT_FAMILY, DEFAULT_FIXED_FONT_STYLE,
485 fDefaultFixedFont = new (std::nothrow) ServerFont(*style,
592 // prevent adding the same style twice
608 FTRACE(("\tadd style: %s, %s\n", face->family_name, face->style_name));
611 FontStyle *style = new FontStyle(nodeRef, path.Path(), face);
612 if (!family->AddStyle(style)) {
613 delete style;
618 directory.styles.AddItem(style);
619 fStyleHashTable.AddItem(style);
785 // directory. If a valid font file, it adds both the family and the style.
981 FontStyle* style = (FontStyle*)fStyleHashTable.GetValue(key);
982 if (style != NULL)
983 return style->Family();
1015 \param style The font's style or NULL in which case \a styleID is used
1017 \param styleID will only be used if \a style is NULL (or empty)
1018 \param face is used to specify the style if both \a style is NULL or empty
1039 // find style
1067 \param style ID of the font's style
1078 /*! \brief If you don't find your preferred font style, but are anxious
1088 FontStyle* style = family->GetStyleMatchingFace(face);
1089 if (style != NULL)
1090 return style;
1099 At this point, the style is already no longer available to the user.
1102 FontManager::RemoveStyle(FontStyle* style)
1104 FontFamily* family = style->Family();
1108 FontStyle* check = GetStyle(family->ID(), style->ID());
1110 debugger("style removed but still available!");
1112 if (family->RemoveStyle(style)