Lines Matching defs:font
24 SkGlyphRun::SkGlyphRun(const SkFont& font,
34 , fFont{font} {}
36 SkGlyphRun::SkGlyphRun(const SkGlyphRun& that, const SkFont& font)
40 , fFont{font} {}
47 // Empty font bounds are likely a font bug. TightBounds has a better chance of
131 if (r.font().getEdging() == SkFont::Edging::kSubpixelAntiAlias) {
149 buffer = builder.allocRunPos(run.font(), run.runSize(), nullptr);
151 buffer = builder.allocRunTextPos(run.font(), run.runSize(), run.text().size(), nullptr);
160 buffer = builder.allocRunRSXform(run.font(), run.runSize());
175 const SkFont& font, SkSpan<const SkGlyphID> glyphIDs, SkPoint origin, SkPoint* buffer) {
176 SkStrikeSpec strikeSpec = SkStrikeSpec::MakeWithNoDevice(font);
190 const SkFont& font, const SkPaint& paint,
193 auto glyphIDs = textToGlyphIDs(font, bytes, byteLength, encoding);
197 SkSpan<const SkPoint> positions = draw_text_positions(font, glyphIDs, {0, 0}, fPositions);
198 this->makeGlyphRun(font,
219 if (runSize == 0 || !SkFontPriv::IsFinite(it.font())) {
220 // If no glyphs or the font is not finite, don't add the run.
224 const SkFont& font = it.font();
231 positions = draw_text_positions(font, glyphIDs, it.offset(), positionCursor);
258 font,
313 const SkFont& font, const void* bytes, size_t byteLength, SkTextEncoding encoding) {
315 int count = font.countText(bytes, byteLength, encoding);
318 font.textToGlyphs(bytes, byteLength, encoding, fScratchGlyphIDs.data(), count);
329 const SkFont& font,
339 font,