/third_party/skia/modules/skparagraph/src/ |
H A D | RunBaseImpl.cpp | 245 SkRect glyphBounds; in getAllGlyphRectInfo() local 246 fVisitorRun->font().getBounds(&runGlyphIdSpan[i], 1, &glyphBounds, nullptr); in getAllGlyphRectInfo() 248 RSRect glyphBounds; in getAllGlyphRectInfo() 249 fVisitorRun->font().GetWidths(&runGlyphIdSpan[i], 1, nullptr, &glyphBounds); in getAllGlyphRectInfo() 253 startRect = glyphBounds; in getAllGlyphRectInfo() 256 endRect = glyphBounds; in getAllGlyphRectInfo() 259 joinRect.Join(glyphBounds); in getAllGlyphRectInfo()
|
H A D | TextLine.cpp | 2393 SkRect glyphBounds; local 2394 run->font().getBounds(&glyphId, 1, &glyphBounds, nullptr); 2396 RSRect glyphBounds; local 2397 run->font().GetWidths(&glyphId, 1, nullptr, &glyphBounds); 2399 rectVec.push_back(glyphBounds);
|
/third_party/skia/modules/skplaintexteditor/src/ |
H A D | shape.cpp | 274 result.glyphBounds.resize(textByteLen); in Shape() 275 for (SkRect& c : result.glyphBounds) { in Shape() 278 runHandler.setRunCallback(set_character_bounds, result.glyphBounds.data()); in Shape() 289 result.glyphBounds.push_back(runHandler.finalRect(font)); in Shape()
|
H A D | shape.h | 15 std::vector<SkRect> glyphBounds; member
|
H A D | editor.cpp | 477 line.fCursorPos = std::move(result.glyphBounds); in reshapeAll() 495 line.fCursorPos = std::move(result.glyphBounds); in reshapeAll()
|
/third_party/skia/modules/skottie/src/text/ |
H A D | SkottieShaper.cpp | 33 SkAutoSTArray<16, SkRect> glyphBounds; in ComputeBlobBounds() local 36 glyphBounds.reset(SkToInt(it.glyphCount())); in ComputeBlobBounds() 37 it.font().getBounds(it.glyphs(), it.glyphCount(), glyphBounds.get(), nullptr); in ComputeBlobBounds() 41 bounds.join(glyphBounds[i].makeOffset(it.pos()[i * 2 ], in ComputeBlobBounds()
|
/third_party/skia/modules/svg/src/ |
H A D | SkSVGText.cpp | 582 SkAutoSTArray<64, SkRect> glyphBounds; in onObjectBoundingBox() 585 glyphBounds.reset(SkToInt(it.glyphCount())); in onObjectBoundingBox() 586 it.font().getBounds(it.glyphs(), it.glyphCount(), glyphBounds.get(), nullptr); in onObjectBoundingBox() 592 bounds.join(m.mapRect(glyphBounds[i])); in onObjectBoundingBox()
|
/third_party/skia/src/pdf/ |
H A D | SkPDFDevice.cpp | 744 SkRect glyphBounds = SkMatrix::Scale(xScale, yScale).mapRect(glyph->rect()); in get_glyph_bounds_device_space() local 745 glyphBounds.offset(xy); in get_glyph_bounds_device_space() 746 ctm.mapRect(&glyphBounds); // now in dev space. in get_glyph_bounds_device_space() 747 return glyphBounds; in get_glyph_bounds_device_space() 927 SkRect glyphBounds = get_glyph_bounds_device_space( in internalDrawGlyphRun() local 930 if (glyphBounds.isEmpty()) { in internalDrawGlyphRun() 931 if (!contains(clipStackBounds, {glyphBounds.x(), glyphBounds.y()})) { in internalDrawGlyphRun() 935 if (!clipStackBounds.intersects(glyphBounds)) { in internalDrawGlyphRun()
|
/third_party/skia/modules/skottie/src/ |
H A D | SkottieTest.cpp | 412 SkAutoSTArray<16, SkRect> glyphBounds; in ComputeBlobBounds() local 415 glyphBounds.reset(SkToInt(it.glyphCount())); in ComputeBlobBounds() 416 it.font().getBounds(it.glyphs(), it.glyphCount(), glyphBounds.get(), nullptr); in ComputeBlobBounds() 420 bounds.join(glyphBounds[i].makeOffset(it.pos()[i * 2 ], in ComputeBlobBounds()
|
/third_party/skia/src/core/ |
H A D | SkTextBlob.cpp | 277 SkAutoSTArray<16, SkRect> glyphBounds(run.glyphCount()); in TightRunBounds() 278 font.getBounds(run.glyphBuffer(), run.glyphCount(), glyphBounds.get(), nullptr); in TightRunBounds() 285 bounds.join(map_quad_to_rect(xform[i], glyphBounds[i])); in TightRunBounds() 303 bounds.join(glyphBounds[i].makeOffset(*glyphPosX, *glyphPosY)); in TightRunBounds()
|
/third_party/skia/modules/skshaper/src/ |
H A D | SkShaper_harfbuzz.cpp | 1629 SkAutoSTArray<32, SkRect> glyphBounds(len); 1631 run.fFont.getBounds(glyphIDs.get(), len, glyphBounds.get(), &p); 1633 SkAutoSTArray<32, RSRect> glyphBounds(len); 1634 run.fFont.GetWidths(glyphIDs.get(), len, nullptr, glyphBounds.get()); 1654 glyph.fHasVisual = !glyphBounds[i].isEmpty(); //!font->currentTypeface()->glyphBoundsAreZero(glyph.fID); 1656 glyph.fHasVisual = !glyphBounds[i].IsEmpty(); //!font->currentTypeface()->glyphBoundsAreZero(glyph.fID);
|
/third_party/skia/tests/ |
H A D | SkRemoteGlyphCacheTest.cpp | 525 SkRect glyphBounds; in make_blob_causing_fallback() local 526 font.getWidths(runBuffer.glyphs, 1, nullptr, &glyphBounds); in make_blob_causing_fallback() 528 REPORTER_ASSERT(reporter, glyphBounds.width() > SkStrikeCommon::kSkSideTooBigForAtlas); in make_blob_causing_fallback()
|
/third_party/skia/tools/fonts/ |
H A D | TestSVGTypeface.cpp | 1158 SkCOLRCanvas(SkRect glyphBounds, in SkCOLRCanvas() argument 1164 : SkNoDrawCanvas(glyphBounds.roundOut().width(), glyphBounds.roundOut().height()) in SkCOLRCanvas() 1165 , fBaselineOffset(glyphBounds.top()) in SkCOLRCanvas()
|
/third_party/skia/src/gpu/text/ |
H A D | GrTextBlob.cpp | 618 calculate_clip(const GrClip* clip, SkRect deviceBounds, SkRect glyphBounds) { in calculate_clip() argument 619 if (clip == nullptr && !deviceBounds.intersects(glyphBounds)) { in calculate_clip() 622 switch (auto result = clip->preApply(glyphBounds, GrAA::kNo); result.fEffect) { in calculate_clip() 634 if (clipRect.contains(glyphBounds)) { in calculate_clip()
|