MCPcopy Create free account
hub / github.com/GraphiteEditor/Graphite / widen_horizontal_gaps

Function widen_horizontal_gaps

node-graph/nodes/text/src/path_builder.rs:228–253  ·  view source on GitHub ↗

Widen AABBs horizontally so same-line neighbors fill inter-glyph gaps. The shorter glyph (higher min.y) widens toward its taller neighbor; equal heights split the gap. Assumes input is in reading order. Linear runtime.

(bboxes: &mut [[DVec2; 2]], baselines: &[f64])

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

finalizeMethod · 0.85

Calls 2

absMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected