Home
last modified time | relevance | path

Searched refs:glyphBounds (Results 1 – 17 of 17) sorted by relevance

/external/skia/modules/skplaintexteditor/src/
Dshape.cpp274 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()
Dshape.h15 std::vector<SkRect> glyphBounds; member
Deditor.cpp477 line.fCursorPos = std::move(result.glyphBounds); in reshapeAll()
495 line.fCursorPos = std::move(result.glyphBounds); in reshapeAll()
/external/skia/modules/skottie/src/text/
DSkottieShaper.cpp32 SkAutoSTArray<16, SkRect> glyphBounds; in ComputeBlobBounds() local
37 glyphBounds.reset(SkToInt(it.glyphCount())); in ComputeBlobBounds()
38 it.font().getBounds(it.glyphs(), it.glyphCount(), glyphBounds.get(), nullptr); in ComputeBlobBounds()
42 bounds.join(glyphBounds[i].makeOffset(it.pos()[i * 2 ], in ComputeBlobBounds()
/external/skia/modules/svg/src/
DSkSVGText.cpp575 SkAutoSTArray<64, SkRect> glyphBounds; in onObjectBoundingBox() local
580 glyphBounds.reset(SkToInt(it.glyphCount())); in onObjectBoundingBox()
581 it.font().getBounds(it.glyphs(), it.glyphCount(), glyphBounds.get(), nullptr); in onObjectBoundingBox()
587 bounds.join(m.mapRect(glyphBounds[i])); in onObjectBoundingBox()
/external/skia/src/pdf/
DSkPDFDevice.cpp736 SkRect glyphBounds = SkMatrix::Scale(xScale, yScale).mapRect(glyph->rect()); in get_glyph_bounds_device_space() local
737 glyphBounds.offset(xy); in get_glyph_bounds_device_space()
738 ctm.mapRect(&glyphBounds); // now in dev space. in get_glyph_bounds_device_space()
739 return glyphBounds; in get_glyph_bounds_device_space()
919 SkRect glyphBounds = get_glyph_bounds_device_space( in internalDrawGlyphRun() local
922 if (glyphBounds.isEmpty()) { in internalDrawGlyphRun()
923 if (!contains(clipStackBounds, {glyphBounds.x(), glyphBounds.y()})) { in internalDrawGlyphRun()
927 if (!clipStackBounds.intersects(glyphBounds)) { in internalDrawGlyphRun()
/external/skia/modules/skottie/src/
DSkottieTest.cpp408 SkAutoSTArray<16, SkRect> glyphBounds; in ComputeBlobBounds() local
413 glyphBounds.reset(SkToInt(it.glyphCount())); in ComputeBlobBounds()
414 it.font().getBounds(it.glyphs(), it.glyphCount(), glyphBounds.get(), nullptr); in ComputeBlobBounds()
418 bounds.join(glyphBounds[i].makeOffset(it.pos()[i * 2 ], in ComputeBlobBounds()
/external/skqp/src/pdf/
DSkPDFDevice.cpp995 SkRect glyphBounds = {glyph.fLeft * xScale, in get_glyph_bounds_device_space() local
999 glyphBounds.offset(xy); in get_glyph_bounds_device_space()
1000 ctm.mapRect(&glyphBounds); // now in dev space. in get_glyph_bounds_device_space()
1001 return glyphBounds; in get_glyph_bounds_device_space()
1194 SkRect glyphBounds = get_glyph_bounds_device_space( in internalDrawGlyphRun() local
1197 if (glyphBounds.isEmpty()) { in internalDrawGlyphRun()
1198 if (!contains(clipStackBounds, {glyphBounds.x(), glyphBounds.y()})) { in internalDrawGlyphRun()
1202 if (!clipStackBounds.intersects(glyphBounds)) { in internalDrawGlyphRun()
/external/skia/src/core/
DSkTextBlob.cpp277 SkAutoSTArray<16, SkRect> glyphBounds(run.glyphCount()); in TightRunBounds() local
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()
/external/skqp/src/gpu/text/
DGrTextBlob.h323 void joinGlyphBounds(const SkRect& glyphBounds) { in joinGlyphBounds() argument
324 fVertexBounds.joinNonEmptyArg(glyphBounds); in joinGlyphBounds()
/external/skia/tests/
DSkRemoteGlyphCacheTest.cpp516 SkRect glyphBounds; in make_blob_causing_fallback() local
517 font.getWidths(runBuffer.glyphs, 1, nullptr, &glyphBounds); in make_blob_causing_fallback()
519 REPORTER_ASSERT(reporter, glyphBounds.width() > SkStrikeCommon::kSkSideTooBigForAtlas); in make_blob_causing_fallback()
/external/skqp/tools/fonts/
DSkTestSVGTypeface.cpp1025 SkCOLRCanvas(SkRect glyphBounds, SkGlyphID glyphId, in SkCOLRCanvas() argument
1028 : SkNoDrawCanvas(glyphBounds.roundOut().width(), glyphBounds.roundOut().height()) in SkCOLRCanvas()
1031 , fBaselineOffset(glyphBounds.top()) in SkCOLRCanvas()
/external/skqp/tests/
DSkRemoteGlyphCacheTest.cpp458 SkRect glyphBounds; in make_blob_causing_fallback() local
459 font.getWidths(runBuffer.glyphs, 1, nullptr, &glyphBounds); in make_blob_causing_fallback()
461 REPORTER_ASSERT(reporter, glyphBounds.width() > SkStrikeCommon::kSkSideTooBigForAtlas); in make_blob_causing_fallback()
/external/skqp/src/core/
DSkTextBlob.cpp269 SkAutoSTArray<16, SkRect> glyphBounds(run.glyphCount()); in TightRunBounds() local
270 font.getBounds(run.glyphBuffer(), run.glyphCount(), glyphBounds.get(), nullptr); in TightRunBounds()
287 bounds.join(glyphBounds[i].makeOffset(*glyphPosX, *glyphPosY)); in TightRunBounds()
/external/skia/tools/fonts/
DTestSVGTypeface.cpp1157 SkCOLRCanvas(SkRect glyphBounds, in SkCOLRCanvas() argument
1163 : SkNoDrawCanvas(glyphBounds.roundOut().width(), glyphBounds.roundOut().height()) in SkCOLRCanvas()
1164 , fBaselineOffset(glyphBounds.top()) in SkCOLRCanvas()
/external/skia/modules/canvaskit/npm_build/types/
Dcanvaskit-wasm-tests.ts324 const glyphBounds = font.getGlyphBounds(glyphMalloc, paint); // $ExpectType Float32Array constant
325 font.getGlyphBounds(someGlyphs, null, glyphBounds);
/external/skia/src/gpu/text/
DGrTextBlob.cpp599 calculate_clip(const GrClip* clip, SkRect deviceBounds, SkRect glyphBounds) { in calculate_clip() argument
600 if (clip == nullptr && !deviceBounds.intersects(glyphBounds)) { in calculate_clip()
603 switch (auto result = clip->preApply(glyphBounds, GrAA::kNo); result.fEffect) { in calculate_clip()
615 if (clipRect.contains(glyphBounds)) { in calculate_clip()