Home
last modified time | relevance | path

Searched refs:glyphRange (Results 1 – 10 of 10) sorted by relevance

/third_party/skia/experimental/sktext/src/
DLogicalRun.h26 SkScalar calculateWidth(GlyphRange glyphRange) const { in calculateWidth() argument
27 SkASSERT(glyphRange.fStart <= glyphRange.fEnd && glyphRange.fEnd < fPositions.size()); in calculateWidth()
28 return fPositions[glyphRange.fEnd].fX - fPositions[glyphRange.fStart].fX; in calculateWidth()
DVisualRun.h43 SkScalar calculateWidth(GlyphRange glyphRange) const { in calculateWidth() argument
44 SkASSERT(glyphRange.fStart <= glyphRange.fEnd && glyphRange.fEnd < fPositions.size()); in calculateWidth()
45 return fPositions[glyphRange.fEnd].fX - fPositions[glyphRange.fStart].fX; in calculateWidth()
DText.cpp587 … GlyphRange glyphRange = this->textToGlyphs(unicodeText, positionType, runIndex, dirTextRange); in visit() local
590 SkRect::MakeXYWH(line.fOffset.fX + run.fPositions[glyphRange.fStart].fX, in visit()
592 run.calculateWidth(glyphRange), in visit()
598 glyphRange.width(), in visit()
599 &run.fGlyphs[glyphRange.fStart], in visit()
600 &run.fPositions[glyphRange.fStart], in visit()
601 &run.fClusters[glyphRange.fStart]); in visit()
617 GlyphRange glyphRange(0, run.size()); in textToGlyphs() local
622 glyphRange.fStart = glyph; in textToGlyphs()
624 glyphRange.fEnd = glyph; in textToGlyphs()
[all …]
DLine.h94 …Stretch(RunIndex runIndex, GlyphRange glyphRange, TextRange textRange, SkScalar width, const TextM… in Stretch() argument
95 : fGlyphStart(runIndex, glyphRange.fStart) in Stretch()
96 , fGlyphEnd(runIndex, glyphRange.fEnd) in Stretch()
/third_party/skia/modules/skparagraph/src/
DOneLineShaper.cpp246 TextRange OneLineShaper::normalizeTextRange(GlyphRange glyphRange) { in normalizeTextRange() argument
249 return TextRange(clusterIndex(glyphRange.start), clusterIndex(glyphRange.end)); in normalizeTextRange()
251 return TextRange(clusterIndex(glyphRange.end - 1), in normalizeTextRange()
252 glyphRange.start > 0 in normalizeTextRange()
253 ? clusterIndex(glyphRange.start - 1) in normalizeTextRange()
269 void OneLineShaper::addUnresolvedWithRun(GlyphRange glyphRange) { in addUnresolvedWithRun() argument
270 RunBlock unresolved(fCurrentRun, clusteredText(glyphRange), glyphRange, 0); in addUnresolvedWithRun()
281 lastUnresolved.fGlyphs.end = glyphRange.end; in addUnresolvedWithRun()
291 … lastUnresolved.fGlyphs.start = std::min(lastUnresolved.fGlyphs.start, glyphRange.start); in addUnresolvedWithRun()
292 lastUnresolved.fGlyphs.end = std::max(lastUnresolved.fGlyphs.end, glyphRange.end); in addUnresolvedWithRun()
DOneLineShaper.h100 void addUnresolvedWithRun(GlyphRange glyphRange);
102 ClusterRange normalizeTextRange(GlyphRange glyphRange);
/third_party/skia/experimental/sktext/include/
DText.h276 …Position(PositionType positionType, size_t lineIndex, GlyphRange glyphRange, TextRange textRange, … in Position()
279 , fGlyphRange(glyphRange) in Position()
DInterface.h141 …Position(PositionType positionType, size_t lineIndex, GlyphRange glyphRange, TextRange textRange, …
/third_party/skia/fuzz/
DFuzzCanvas.cpp884 int glyphRange = font.getTypefaceOrDefault()->countGlyphs(); in make_fuzz_text() local
885 if (glyphRange == 0) { in make_fuzz_text()
894 fuzz->nextRange(&glyphs[i], 0, glyphRange - 1); in make_fuzz_text()
/third_party/flutter/skia/fuzz/
DFuzzCanvas.cpp891 int glyphRange = font.getTypefaceOrDefault()->countGlyphs(); in make_fuzz_text() local
892 if (glyphRange == 0) { in make_fuzz_text()
901 fuzz->nextRange(&glyphs[i], 0, glyphRange - 1); in make_fuzz_text()