pub fn fracture_text_contours_a0(
contours: &[TextContour],
) -> Result<TextTopologyOutput, TextContourError>Expand description
Normalize duplicate closure points and fracture holes into exterior paths.
This mirrors the cache-oriented ordering used by the Python KiCad reference.
Contours are classified by containment-depth parity (even depth = exterior,
odd depth = hole), so holes may arrive before or after their exterior (Noto
faces store holes first). One call must cover exactly one glyph’s polygon
set: KiCad only runs
Fracture() (and its Clipper2 Simplify() seam rewrite plus outer
reordering) when the glyph set has holes, so a hole-free input keeps font
order and ring starts untouched.
Degenerate (<3 point) contours are standalone exteriors published at their
stored position in hole-free inputs and dropped from holed inputs, matching
Clipper2 Simplify() eating degenerate rings during Fracture().