This commit is contained in:
Sebastian Köln 2019-06-25 11:39:31 +03:00
parent b41388c3ed
commit 251785db67
1 changed files with 3 additions and 3 deletions

View File

@ -137,7 +137,7 @@ impl CanvasRenderingContext2D {
paint_id));
}
pub fn layout_text(&self, string: &str) -> Layout {
fn layout_text(&self, string: &str) -> Layout {
skribo::layout(&TextStyle { size: self.current_state.font_size },
&self.current_state.font_collection,
string)