Fix FontSystem::new_with_locale_and_db Signature

It turns out that the `no_std` version of
`FontSystem::new_with_locale_and_db` doesn't match the `std` version.
This fixes that.
This commit is contained in:
Christopher Serr 2023-03-29 22:29:09 +02:00
parent 521acb64e0
commit 71281a5d79
2 changed files with 6 additions and 7 deletions

View file

@ -10,7 +10,7 @@ use cosmic::{
mouse::{self, Button, Event as MouseEvent, ScrollDelta},
renderer,
widget::{self, tree, Widget},
Padding, {Color, Element, Length, Point, Rectangle, Shell, Size},
Color, Element, Length, Padding, Point, Rectangle, Shell, Size,
},
theme::{Theme, ThemeType},
};
@ -227,7 +227,9 @@ where
// Scale metrics
let metrics = editor.buffer().metrics();
editor.buffer_mut().set_metrics(metrics.scale(style.scale_factor as f32));
editor
.buffer_mut()
.set_metrics(metrics.scale(style.scale_factor as f32));
// Set size
editor.buffer_mut().set_size(image_w as f32, image_h as f32);