Lines Matching defs:font

243     return fCurrentRun->font().getEdging() == SkFont::Edging::kSubpixelAntiAlias;
257 // We are abandoning runs and must destruct the associated font data.
268 const SkFont& font = run.font();
272 font.measureText(run.glyphBuffer(), run.glyphCount() * sizeof(uint16_t),
278 font.getBounds(run.glyphBuffer(), run.glyphCount(), glyphBounds.get(), nullptr);
319 const SkRect fontBounds = SkFontPriv::GetFontBounds(run.font());
321 // Empty font bounds are likely a font bug. TightBounds has a better chance of
416 bool SkTextBlobBuilder::mergeRun(const SkFont& font, SkTextBlob::GlyphPositioning positioning,
433 || run->font() != font
438 // we can merge same-font/same-positioning runs in the following cases:
476 void SkTextBlobBuilder::allocInternal(const SkFont& font,
485 if (textSize != 0 || !this->mergeRun(font, positioning, count, offset)) {
501 SkTextBlob::RunRecord(count, textSize, offset, font, positioning);
527 const SkTextBlobBuilder::RunBuffer& SkTextBlobBuilder::allocRun(const SkFont& font, int count,
530 this->allocInternal(font, SkTextBlob::kDefault_Positioning, count, 0, {x, y}, bounds);
534 const SkTextBlobBuilder::RunBuffer& SkTextBlobBuilder::allocRunPosH(const SkFont& font, int count,
537 this->allocInternal(font, SkTextBlob::kHorizontal_Positioning, count, 0, {0, y}, bounds);
541 const SkTextBlobBuilder::RunBuffer& SkTextBlobBuilder::allocRunPos(const SkFont& font, int count,
543 this->allocInternal(font, SkTextBlob::kFull_Positioning, count, 0, {0, 0}, bounds);
548 SkTextBlobBuilder::allocRunRSXform(const SkFont& font, int count) {
549 this->allocInternal(font, SkTextBlob::kRSXform_Positioning, count, 0, {0, 0}, nullptr);
553 const SkTextBlobBuilder::RunBuffer& SkTextBlobBuilder::allocRunText(const SkFont& font, int count,
557 this->allocInternal(font,
566 const SkTextBlobBuilder::RunBuffer& SkTextBlobBuilder::allocRunTextPosH(const SkFont& font,
571 this->allocInternal(font,
580 const SkTextBlobBuilder::RunBuffer& SkTextBlobBuilder::allocRunTextPos(const SkFont& font,
584 this->allocInternal(font,
592 const SkTextBlobBuilder::RunBuffer& SkTextBlobBuilder::allocRunTextRSXform(const SkFont& font,
596 this->allocInternal(font,
674 SkFontPriv::Flatten(it.font(), buffer);
719 SkFont font;
720 SkFontPriv::Unflatten(&font, reader);
739 buf = &blobBuilder.allocRunText(font, glyphCount, offset.x(), offset.y(),
743 buf = &blobBuilder.allocRunTextPosH(font, glyphCount, offset.y(),
747 buf = &blobBuilder.allocRunTextPos(font, glyphCount, textSize, &bounds);
750 buf = &blobBuilder.allocRunTextRSXform(font, glyphCount, textSize, &bounds);
776 sk_sp<SkTextBlob> SkTextBlob::MakeFromText(const void* text, size_t byteLength, const SkFont& font,
780 const int count = font.countText(text, byteLength, encoding);
785 auto buffer = builder.allocRunPos(font, count);
786 font.textToGlyphs(text, byteLength, encoding, buffer.glyphs, count);
787 font.getPos(buffer.glyphs, count, buffer.points(), {0, 0});
792 const SkPoint pos[], const SkFont& font,
794 const int count = font.countText(text, byteLength, encoding);
799 auto buffer = builder.allocRunPos(font, count);
800 font.textToGlyphs(text, byteLength, encoding, buffer.glyphs, count);
807 const SkFont& font, SkTextEncoding encoding) {
808 const int count = font.countText(text, byteLength, encoding);
813 auto buffer = builder.allocRunPosH(font, count, constY);
814 font.textToGlyphs(text, byteLength, encoding, buffer.glyphs, count);
820 const SkRSXform xform[], const SkFont& font,
822 const int count = font.countText(text, byteLength, encoding);
827 auto buffer = builder.allocRunRSXform(font, count);
828 font.textToGlyphs(text, byteLength, encoding, buffer.glyphs, count);
878 SkFont interceptFont{glyphRun.font()};
979 rec->fTypeface = fRunRecord->font().getTypeface();
1001 rec->font = fRunRecord->font();
1039 SkFont font = it.font();
1040 font.getPath(glyphId, &path);