Lines Matching defs:blocks
63 std::unique_ptr<FontResolvedText> UnicodeText::resolveFonts(SkSpan<FontBlock> blocks) {
69 for (auto& block : blocks) {
133 // Let's fill the resolved blocks with the current font
249 // Break text into pieces by font blocks and by formatting marks
542 std::vector<TextIndex> blocks;
543 blocks.reserve(chunks.size() + 1);
546 blocks.emplace_back(index);
549 blocks.emplace_back(index);
550 return std::move(blocks);
553 SkSpan<TextIndex> WrappedText::limitBlocks(TextRange textRange, SkSpan<TextIndex> blocks) {
555 for (auto i = 0ul; i < blocks.size(); ++i) {
556 auto block = blocks[i];
567 return SkSpan<TextIndex>(&blocks[textRange.fStart], textRange.width());
571 // Decor blocks have to be sorted by text cannot intersect but can skip some parts of the text
573 // The edges of the decor blocks don't have to match glyph, grapheme or even unicode code point edges