diff --git a/examples/custom_font/src/main.rs b/examples/custom_font/src/main.rs index b67243b4ff1..99c98a6e158 100644 --- a/examples/custom_font/src/main.rs +++ b/examples/custom_font/src/main.rs @@ -39,6 +39,7 @@ fn add_font(ctx: &egui::Context) { )); } +// Demonstrates how to replace all fonts. fn replace_fonts(ctx: &egui::Context) { // Start with the default fonts (we will be adding to them rather than replacing them). let mut fonts = egui::FontDefinitions::default();