Lines Matching refs:unicodeText
100 bool FontResolvedText::resolveChain(UnicodeText* unicodeText, TextRange textRange, const FontChain&… in resolveChain() argument
116 unicodeText->forEachGrapheme(unresolvedText, [&](TextRange grapheme) { in resolveChain()
117 …auto count = typeface->textToGlyphs(unicodeText->getText16().data() + grapheme.fStart, grapheme.wi… in resolveChain()
119 …typeface->textToGlyphs(unicodeText->getText16().data() + grapheme.fStart, grapheme.width() * 2, Sk… in resolveChain()
225 std::unique_ptr<ShapedText> FontResolvedText::shape(UnicodeText* unicodeText, in shape() argument
229 auto text16 = unicodeText->getText16(); in shape()
236 unicodeText->getUnicode()->forEachCodepoint(text8.c_str(), text8.size(), in shape()
253 if (unicodeText->isHardLineBreak(i)) { in shape()
275 …unicodeText->getUnicode(), text8.c_str(), text8.size(), textDirection == TextDirection::kLtr ? 0 :… in shape()
277 …SkShaper::MakeSkUnicodeHbScriptRunIterator(unicodeText->getUnicode(), text8.c_str(), text8.size())… in shape()
312 unicodeText->isHardLineBreak(logicalRun.getTextRange().fStart)) { in shape()
320 std::unique_ptr<WrappedText> ShapedText::wrap(UnicodeText* unicodeText, float width, float height) { in wrap() argument
336 this->addLine(wrappedText.get(), unicodeText->getUnicode(), line, spaces, true); in wrap()
373 auto isSoftLineBreak = unicodeText->isSoftLineBreak(cluster.textStart()); in wrap()
374 auto isWhitespaces = unicodeText->isWhitespaces(cluster.textRange()); in wrap()
410 this->addLine(wrappedText.get(), unicodeText->getUnicode(), line, spaces, false); in wrap()
430 this->addLine(wrappedText.get(), unicodeText->getUnicode(), line, spaces, false); in wrap()
570 void WrappedText::visit(UnicodeText* unicodeText, Visitor* visitor, PositionType positionType, SkSp… in visit() argument
587 … GlyphRange glyphRange = this->textToGlyphs(unicodeText, positionType, runIndex, dirTextRange); in visit()
613 GlyphRange WrappedText::textToGlyphs(UnicodeText* unicodeText, PositionType positionType, RunIndex … in textToGlyphs() argument
620 …if (positionType == PositionType::kGraphemeCluster && unicodeText->hasProperty(textIndex, CodeUnit… in textToGlyphs()
634 std::unique_ptr<SelectableText> WrappedText::prepareToEdit(UnicodeText* unicodeText) const { in prepareToEdit()
637 …selectableText->fGlyphUnitProperties.push_back_n(unicodeText->getText16().size() + 1, GlyphUnitFla… in prepareToEdit()
638 for (auto index = 0; index < unicodeText->getText16().size(); ++index) { in prepareToEdit()
639 if (unicodeText->hasProperty(index, CodeUnitFlags::kHardLineBreakBefore)) { in prepareToEdit()
645 if (unicodeText->hasProperty(cluster, CodeUnitFlags::kGraphemeStart)) { in prepareToEdit()