pub enum GlyphCollisionDirection {
Fixed,
Right,
Left,
Down,
Up,
}Expand description
The permitted escape direction for a lower-priority placement in a unified collision pass.
The direction is semantic host input rather than an inferred writing direction: for example, a lyric lane generally moves down while a rehearsal mark lane moves up. Keeping that choice explicit lets one deterministic pass serve text, dynamics, spanners, tablature, and other annotation owners without loading a font or assuming a renderer coordinate system.
Variants§
Fixed
Keep the placement at its authored or previously resolved coordinate.
Fixed placements act as collision obstacles for later, lower-priority entries. They make it possible for renderers to extend an already resolved skyline without reflowing emitted content.
Right
Move toward increasing x coordinates.
Left
Move toward decreasing x coordinates.
Down
Move toward increasing y coordinates.
Up
Move toward decreasing y coordinates.