/third_party/skia/experimental/sktext/tests/ |
D | SelectableText.cpp | 99 …UnicodeText unicodeText(SkUnicode::Make(), SkSpan<uint16_t>((uint16_t*)utf16.data(), utf16.size())… in UNIX_ONLY_TEST() local 100 if (!unicodeText.getUnicode()) return; in UNIX_ONLY_TEST() 103 auto fontResolvedText = unicodeText.resolveFonts(SkSpan<FontBlock>(&fontBlock, 1)); in UNIX_ONLY_TEST() 104 auto shapedText = fontResolvedText->shape(&unicodeText, TextDirection::kLtr); in UNIX_ONLY_TEST() 105 auto wrappedText = shapedText->wrap(&unicodeText, 440.0f, 500.0f); in UNIX_ONLY_TEST() 106 auto selectableText = wrappedText->prepareToEdit(&unicodeText); in UNIX_ONLY_TEST() 147 …UnicodeText unicodeText(SkUnicode::Make(), SkSpan<uint16_t>((uint16_t*)utf16.data(), utf16.size())… in UNIX_ONLY_TEST() local 148 if (!unicodeText.getUnicode()) return; in UNIX_ONLY_TEST() 151 auto fontResolvedText = unicodeText.resolveFonts(SkSpan<FontBlock>(&fontBlock, 1)); in UNIX_ONLY_TEST() 152 auto shapedText = fontResolvedText->shape(&unicodeText, TextDirection::kLtr); in UNIX_ONLY_TEST() [all …]
|
D | ShapedText.cpp | 46 …UnicodeText unicodeText(SkUnicode::Make(), SkSpan<uint16_t>((uint16_t*)utf16.data(), utf16.size())… in UNIX_ONLY_TEST() local 47 if (!unicodeText.getUnicode()) return; in UNIX_ONLY_TEST() 50 auto fontResolvedText = unicodeText.resolveFonts(SkSpan<FontBlock>(&fontBlock, 1)); in UNIX_ONLY_TEST() 51 auto shapedText = fontResolvedText->shape(&unicodeText, TextDirection::kLtr); in UNIX_ONLY_TEST() 65 …UnicodeText unicodeText(SkUnicode::Make(), SkSpan<uint16_t>((uint16_t*)utf16.data(), utf16.size())… in UNIX_ONLY_TEST() local 66 if (!unicodeText.getUnicode()) return; in UNIX_ONLY_TEST() 69 auto fontResolvedText = unicodeText.resolveFonts(SkSpan<FontBlock>(&fontBlock, 1)); in UNIX_ONLY_TEST() 70 auto shapedText = fontResolvedText->shape(&unicodeText, TextDirection::kLtr); in UNIX_ONLY_TEST()
|
D | WrappedText.cpp | 97 …UnicodeText unicodeText(SkUnicode::Make(), SkSpan<uint16_t>((uint16_t*)utf16.data(), utf16.size())… in UNIX_ONLY_TEST() local 98 if (!unicodeText.getUnicode()) return; in UNIX_ONLY_TEST() 101 auto fontResolvedText = unicodeText.resolveFonts(SkSpan<FontBlock>(&fontBlock, 1)); in UNIX_ONLY_TEST() 102 auto shapedText = fontResolvedText->shape(&unicodeText, TextDirection::kLtr); in UNIX_ONLY_TEST() 103 auto wrappedText = shapedText->wrap(&unicodeText, 440.0f, 500.0f); in UNIX_ONLY_TEST() 146 …UnicodeText unicodeText(SkUnicode::Make(), SkSpan<uint16_t>((uint16_t*)utf16.data(), utf16.size())… in UNIX_ONLY_TEST() local 147 if (!unicodeText.getUnicode()) return; in UNIX_ONLY_TEST() 150 auto fontResolvedText = unicodeText.resolveFonts(SkSpan<FontBlock>(&fontBlock, 1)); in UNIX_ONLY_TEST() 151 auto shapedText = fontResolvedText->shape(&unicodeText, TextDirection::kLtr); in UNIX_ONLY_TEST() 152 auto wrappedText = shapedText->wrap(&unicodeText, 800.0f, 800.0f); in UNIX_ONLY_TEST()
|
D | FontResolvedText.cpp | 46 …UnicodeText unicodeText(SkUnicode::Make(), SkSpan<uint16_t>((uint16_t*)utf16.data(), utf16.size())… in UNIX_ONLY_TEST() local 47 if (!unicodeText.getUnicode()) return; in UNIX_ONLY_TEST() 50 auto fontResolvedText = unicodeText.resolveFonts(SkSpan<FontBlock>(&fontBlock, 1)); in UNIX_ONLY_TEST() 66 …UnicodeText unicodeText(SkUnicode::Make(), SkSpan<uint16_t>((uint16_t*)utf16.data(), utf16.size())… in UNIX_ONLY_TEST() local 67 if (!unicodeText.getUnicode()) return; in UNIX_ONLY_TEST() 70 auto fontResolvedText = unicodeText.resolveFonts(SkSpan<FontBlock>(&fontBlock, 1)); in UNIX_ONLY_TEST()
|
/third_party/skia/experimental/sktext/src/ |
D | Text.cpp | 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() [all …]
|
D | Paint.cpp | 82 …auto unicodeText = std::make_unique<UnicodeText>(std::move(unicode), SkSpan<uint16_t>((uint16_t*)t… in layout() local 83 auto fontResolvedText = unicodeText->resolveFonts(fontBlocks); in layout() 84 auto shapedText = fontResolvedText->shape(unicodeText.get(), TextDirection::kLtr); in layout() 85 auto wrappedText = shapedText->wrap(unicodeText.get(), reqSize.width(), reqSize.height()); in layout() 104 …void Paint::paint(SkCanvas* canvas, SkPoint xy, UnicodeText* unicodeText, WrappedText* wrappedText… in paint() argument 120 …wrappedText->visit(unicodeText, this, PositionType::kGraphemeCluster, SkSpan<size_t>(chunks.data()… in paint()
|
D | Paint.h | 72 …void paint(SkCanvas* canvas, SkPoint xy, UnicodeText* unicodeText, WrappedText* wrappedText, SkSpa…
|
/third_party/skia/experimental/sktext/include/ |
D | Interface.h | 61 std::unique_ptr<WrappedText> wrap(UnicodeText* unicodeText, float width, float height); 98 …std::unique_ptr<DrawableText> prepareToDraw(UnicodeText* unicodeText, PositionType positionType, S… 104 std::unique_ptr<SelectableText> prepareToEdit(UnicodeText* unicodeText) const; 115 void decorate(UnicodeText* unicodeText, SkSpan<TextIndex> chunks); 128 …void visit(UnicodeText* unicodeText, Visitor* visitor, PositionType positionType, SkSpan<TextIndex…
|
D | Text.h | 103 … virtual std::unique_ptr<ShapedText> shape(UnicodeText* unicodeText, TextDirection textDirection); 108 bool resolveChain(UnicodeText* unicodeText, TextRange textRange, const FontChain& fontChain); 129 std::unique_ptr<WrappedText> wrap(UnicodeText* unicodeText, float width, float height); 201 …std::unique_ptr<Drawable> prepareToDraw(UnicodeText* unicodeText, PositionType positionType, SkSpa… in prepareToDraw() argument 203 this->visit(unicodeText, drawableText.get(), positionType, blocks); in prepareToDraw() 211 std::unique_ptr<SelectableText> prepareToEdit(UnicodeText* unicodeText) const; 233 …void visit(UnicodeText* unicodeText, Visitor* visitor, PositionType positionType, SkSpan<size_t> c… 241 …GlyphRange textToGlyphs(UnicodeText* unicodeText, PositionType positionType, RunIndex runIndex, Di…
|
/third_party/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/ |
D | CharsetSelector.java | 198 public List<String> selectForString(CharSequence unicodeText) { in selectForString() argument 207 while (index < unicodeText.length()) { in selectForString() 208 int c = UTF16.charAt(unicodeText, index); in selectForString()
|