From 9c5e455b21e3769784fc44c203b59b08aef64c6b Mon Sep 17 00:00:00 2001 From: Rob Parrett Date: Sun, 3 Jan 2021 12:47:42 -0700 Subject: [PATCH] Add support for OTF fonts --- 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"] } }