Paint lines
This commit is contained in:
parent
e460f6a27c
commit
a866370dc1
8 changed files with 164 additions and 178 deletions
|
@ -74,7 +74,7 @@ impl<V: 'static> Element<V> for Text<V> {
|
|||
) -> LayoutId {
|
||||
let text_system = cx.text_system().clone();
|
||||
let text_style = cx.text_style();
|
||||
let font_size = text_style.font_size * cx.rem_size();
|
||||
let font_size = text_style.font_size.to_pixels(cx.rem_size());
|
||||
let line_height = text_style
|
||||
.line_height
|
||||
.to_pixels(font_size.into(), cx.rem_size());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue