pub(crate) fn clamp_label_position( pos: Point, text: &str, font_size: usize, min: Point, max: Point, ) -> Point