From 8a330a889d8000ad6edacc23d18667f7b2fa73b4 Mon Sep 17 00:00:00 2001 From: Rob Parrett Date: Sun, 3 Jan 2021 13:10:23 -0700 Subject: [PATCH] Add support for OTF fonts (#1200) --- crates/bevy_text/src/font_loader.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_text/src/font_loader.rs b/crates/bevy_text/src/font_loader.rs index 39b02d0adc1ef..e179ec9ccf82e 100644 --- a/crates/bevy_text/src/font_loader.rs +++ b/crates/bevy_text/src/font_loader.rs @@ -20,6 +20,6 @@ impl AssetLoader for FontLoader { } fn extensions(&self) -> &[&str] { - &["ttf"] + &["ttf", "otf"] } }