diff --git a/crates/egui/src/widget_text.rs b/crates/egui/src/widget_text.rs index 80ee6f05124..011a4adcbb0 100644 --- a/crates/egui/src/widget_text.rs +++ b/crates/egui/src/widget_text.rs @@ -380,6 +380,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; }