pub fn run_height(run: &EditorTextRun, style: EditorStyle) -> f32Expand description
Returns the shaped visual height clamped by the configured line height.
ยงExamples
use ailloli_ui_editor::{input::caret::run_height, layout::EditorTextRun, EditorStyle};
fn height(run: &EditorTextRun) {
let value: f32 = run_height(run, EditorStyle::default());
assert!(value >= 18.0);
}