🔧 Keep max line-height

This commit is contained in:
Elena Torro
2025-10-31 09:02:15 +01:00
parent e67d6bc7dc
commit b3bd7e7a28

View File

@@ -687,13 +687,8 @@ impl TextSpan {
paint = merge_fills(&self.fills, *content_bounds);
}
// FIXME
if self.line_height <= 0.0 {
style.set_height(paragraph_line_height);
} else {
style.set_height(self.line_height);
}
let max_line_height = f32::max(paragraph_line_height, self.line_height);
style.set_height(max_line_height);
style.set_height_override(true);
style.set_foreground_paint(&paint);
style.set_decoration_type(match self.text_decoration {