pub fn stroked_text_sprites(
text_rt: &Arc<RenderTexture>,
layer: &StrokedTextLayer,
) -> Vec<Sprite>Expand description
Produce a list of sprites that, when attached to a container,
render the given text-texture with fill interior and stroke
outline at the configured stroke_width_ndc.
Sprites are emitted with tint set; the caller positions them via
the container’s transform. The +y flip used by every text-texture
consumer (scale.y = -1) is not applied here — apply it on
the parent container or override per-sprite if your render-texture
already arrives oriented +y-up.
Order: stroke sprites first (background), fill sprite last. The renderer draws in scene-tree order, so the fill sits on top.
Skipping the stroke entirely (stroke_width_ndc == 0.0) returns a
single-sprite vector.