mirror of
https://github.com/penpot/penpot.git
synced 2025-12-12 06:24:17 +01:00
🔧 Allow line height values from 0 to 1
This commit is contained in:
@@ -475,7 +475,7 @@ impl Paragraph {
|
|||||||
.unwrap_or(&self.children[0]);
|
.unwrap_or(&self.children[0]);
|
||||||
|
|
||||||
let mut strut_style = skia::textlayout::StrutStyle::default();
|
let mut strut_style = skia::textlayout::StrutStyle::default();
|
||||||
let line_height = self.line_height.max(1.0);
|
let line_height = self.line_height.max(0.0);
|
||||||
strut_style.set_font_size(reference_child.font_size);
|
strut_style.set_font_size(reference_child.font_size);
|
||||||
strut_style.set_height(line_height);
|
strut_style.set_height(line_height);
|
||||||
strut_style.set_height_override(true);
|
strut_style.set_height_override(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user