Lines Matching defs:face

28 	\param face FreeType handle for the font file after it is loaded - it will
31 FontStyle::FontStyle(node_ref& nodeRef, const char* path, FT_Face face,
34 fFreeTypeFace(face),
35 fName(face->style_name),
41 fFace(_TranslateStyleToFace(face->style_name)),
50 fHeight.ascent = (double)face->ascender / face->units_per_EM;
51 fHeight.descent = (double)-face->descender / face->units_per_EM;
56 fHeight.leading = (double)(face->height - face->ascender
57 + face->descender) / face->units_per_EM;
60 FT_Pos size = face->available_sizes[0].size;
61 for (int i = 1; i < face->num_fixed_sizes; i++)
62 size = max_c(size, face->available_sizes[i].size);
63 FT_Set_Pixel_Sizes(face, 0, size / 64);
67 FT_Size_Metrics metrics = face->size->metrics;
80 if (FT_Load_Char(face, (uint32)' ', loadFlags) != 0)
83 int firstWidth = face->glyph->advance.x;
85 if (FT_Load_Char(face, c, loadFlags) != 0)
88 if (face->glyph->advance.x != firstWidth)
184 \brief Updates the given face to match the one from this style
186 The specified font face often doesn't match the exact face of
187 a style. This method will preserve the attributes of the face
190 The font renderer could then emulate the other face attributes
194 FontStyle::PreservedFace(uint16 face) const
197 face &= ~(B_REGULAR_FACE | B_BOLD_FACE | B_ITALIC_FACE | B_CONDENSED_FACE
199 face |= Face();
201 return face;
206 FontStyle::UpdateFace(FT_Face face)
213 // we only accept the face if it hasn't change its style
215 BString name = face->style_name;
222 fFreeTypeFace = face;
245 uint16 face = 0;
248 face |= B_BOLD_FACE;
252 face |= B_ITALIC_FACE;
255 face |= B_CONDENSED_FACE;
259 face |= B_LIGHT_FACE;
263 face |= B_HEAVY_FACE;
265 if (face == 0)
268 return face;