mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Further changes required by Servo
This commit is contained in:
parent
18b9e1b615
commit
7ce706f891
7 changed files with 13 additions and 9 deletions
|
@ -488,7 +488,7 @@ impl<'a> CanvasData<'a> {
|
|||
.state
|
||||
.font_style
|
||||
.as_ref()
|
||||
.map_or(10., |style| style.font_size.size().px());
|
||||
.map_or(10., |style| style.font_size.computed_size().px());
|
||||
let font_style = self.state.font_style.as_ref();
|
||||
let font = font_style.map_or_else(
|
||||
|| load_system_font_from_style(None),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue