1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 21:30:03 -04:00

Update rusttype

This commit is contained in:
Emil Ernerfeldt
2020-04-24 19:07:33 +02:00
parent bfde98ccb8
commit b407a65e87
3 changed files with 28 additions and 3 deletions

View File

@@ -73,7 +73,7 @@ impl Font {
scale_in_points: f32,
pixels_per_point: f32,
) -> Font {
let font = rusttype::Font::from_bytes(font_data).expect("Error constructing Font");
let font = rusttype::Font::try_from_bytes(font_data).expect("Error constructing Font");
let scale_in_pixels = pixels_per_point * scale_in_points;
let mut font = Font {