Lines Matching refs:font
150 FontCacheEntry::Init(const ServerFont& font, bool forceVector)
155 glyph_rendering renderingType = _RenderTypeFor(font, forceVector);
157 // TODO: encoding from font
159 bool hinting = font.Hinting();
162 if (font.FontData() != NULL)
163 success = fEngine.Init(NULL, font.FaceIndex(), font.Size(), charMap,
164 renderingType, hinting, (const void*)font.FontData(), font.FontDataSize());
166 success = fEngine.Init(font.Path(), font.FaceIndex(), font.Size(), charMap,
170 fprintf(stderr, "FontCacheEntry::Init() - some error loading font "
171 "file %s\n", font.Path());
177 "GlyphCache table for font file %s\n", font.Path());
393 const ServerFont& font, bool forceVector)
395 glyph_rendering renderingType = _RenderTypeFor(font, forceVector);
397 // TODO: read more of these from the font
399 bool hinting = font.Hinting();
403 font.GetFamilyAndStyle(), font.Manager(), charMap,
404 font.Face(), int(renderingType), font.Size(), hinting, averageWeight);
424 FontCacheEntry::_RenderTypeFor(const ServerFont& font, bool forceVector)
429 if (forceVector || font.Rotation() != 0.0 || font.Shear() != 90.0
430 || font.FalseBoldWidth() != 0.0
431 || (font.Flags() & B_DISABLE_ANTIALIASING) != 0
432 || font.Size() > 30
433 || !font.Hinting()) {