Lines Matching defs:font
124 static void output_path_data(const SkFont& font,
128 uint16_t glyphID = font.unicharToGlyph(index);
130 font.getPath(glyphID, &path);
156 font.getWidths(&glyphID, 1, &width);
194 SkFont font;
195 font.setEdging(SkFont::Edging::kAntiAlias);
196 font.setSize(emSize);
197 font.setTypeface(std::move(face));
203 output_path_data(font, emSize, &ptsOut, &verbs, &charCodes, &widths);
261 font.getMetrics(&metrics);
284 static SkString identifier(const FontFamilyDesc& family, const FontDesc& font) {
286 id.append(font.fNamedStyle.fIdentifierName);
294 for (const FontDesc& font : family.fFonts) {
295 SkString filepath(SkOSPath::Join(basepath, font.fFile));
298 SkASSERTF(resourceTypeface, "The file %s is not a font.", filepath.c_str());
299 output_font(std::move(resourceTypeface), identifier(family, font).c_str(), out);
320 for (const FontDesc& font : family.fFonts) {
321 SkString identifierStr = identifier(family, font);
323 const SkFontStyle& style = font.fNamedStyle.fStyle;
348 for (const FontDesc& font : family.fFonts) {
349 if (&font == defaultFont) {
352 const SkFontStyle& style = font.fNamedStyle.fStyle;
355 family.fGenericName, font.fNamedStyle.fName,
357 testFontsIndex, font.fFile);
363 for (const FontDesc& font : family.fFonts) {
366 family.fFamilyName, font.fNamedStyle.fName,
367 font.fNamedStyle.fStyle.weight(), font.fNamedStyle.fStyle.width(),
368 slant_to_string(font.fNamedStyle.fStyle.slant()), testFontsIndex, font.fFile);