Expand description
Primitive readable text sizing and measure helpers.
These are practical utility thresholds, not a full typography system.
§Examples
use use_readable_text::{
TextSize, characters_per_line, is_line_height_readable, is_measure_readable,
line_height_ratio,
};
let text = TextSize::new(16.0, 24.0).unwrap();
let characters = characters_per_line(560.0, 8.0).unwrap();
assert_eq!(line_height_ratio(16.0, 24.0).unwrap(), 1.5);
assert_eq!(text.line_height_ratio(), 1.5);
assert!(is_line_height_readable(16.0, 24.0).unwrap());
assert_eq!(characters, 70.0);
assert!(is_measure_readable(characters).unwrap());