diff --git a/crates/egui/src/widget_text.rs b/crates/egui/src/widget_text.rs index 03b8cbb9751..59b99844d96 100644 --- a/crates/egui/src/widget_text.rs +++ b/crates/egui/src/widget_text.rs @@ -359,6 +359,9 @@ impl RichText { || fallback_font.resolve(style), |text_style| text_style.resolve(style), ); + if let Some(fid) = style.override_font_id.clone() { + font_id = fid; + } if let Some(size) = size { font_id.size = size; }