mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 06:10:06 -04:00
Update rusttype
This commit is contained in:
@@ -8,6 +8,6 @@ edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
parking_lot = "0.10"
|
||||
rusttype = "0.8"
|
||||
rusttype = "0.9"
|
||||
serde = "1"
|
||||
serde_derive = "1"
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user