pub fn shortened(
segments: &[String],
room: f32,
measure: impl Fn(&str) -> f32,
) -> StringExpand description
segments joined into a path that fits room, dropped from the LEFT: the
immediate parent is what tells two matches apart, so it is the end that
survives. measure is the caller’s own text measurement, so what is
dropped depends on the font actually painting it.