Lines Matching refs:glyphInfo
7603 Paragraph::GlyphClusterInfo glyphInfo;
7604 auto foundCluster = paragraph->getGlyphClusterAt(0, &glyphInfo);
7605 REPORTER_ASSERT(reporter, foundCluster && glyphInfo.fClusterTextRange.start == 0);
7606 foundCluster = paragraph->getGlyphClusterAt(len / 2, &glyphInfo);
7607 REPORTER_ASSERT(reporter, foundCluster && glyphInfo.fClusterTextRange.start == len / 2);
7608 foundCluster = paragraph->getGlyphClusterAt(len, &glyphInfo);
7611 auto foundClosest = paragraph->getClosestGlyphClusterAt(0, 10, &glyphInfo);
7612 REPORTER_ASSERT(reporter, foundClosest && glyphInfo.fClusterTextRange.start == 0 &&
7613 glyphInfo.fClusterTextRange.end == 1);
7614 foundClosest = paragraph->getClosestGlyphClusterAt(TestCanvasWidth / 2, 20, &glyphInfo);
7615 REPORTER_ASSERT(reporter, foundClosest && glyphInfo.fClusterTextRange.start == 61 &&
7616 glyphInfo.fClusterTextRange.end == 62);
7617 foundClosest = paragraph->getClosestGlyphClusterAt(TestCanvasWidth + 10, 30, &glyphInfo);
7618 REPORTER_ASSERT(reporter, foundClosest && glyphInfo.fClusterTextRange.start == 230 &&
7619 glyphInfo.fClusterTextRange.end == 231);