diff --git a/src/graphics/config_ui.rs b/src/graphics/config_ui.rs index e9db82e04..60f72f6bc 100644 --- a/src/graphics/config_ui.rs +++ b/src/graphics/config_ui.rs @@ -23,8 +23,9 @@ impl ConfigUi { ) -> Result { let font = FontArc::try_from_slice(include_bytes!("fonts/B612-Bold.ttf"))?; - let glyph_brush = - GlyphBrushBuilder::using_font(font).build(device, color_format); + let glyph_brush = GlyphBrushBuilder::using_font(font) + .initial_cache_size((512, 512)) + .build(device, color_format); let mut texts = HashMap::new(); for element in Element::elements() {