Skip to content

Commit

Permalink
Add overriding TextId for RichText
Browse files Browse the repository at this point in the history
  • Loading branch information
MStarha committed Oct 27, 2024
1 parent 5b846b4 commit 3a22236
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/egui/src/widget_text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3a22236

Please sign in to comment.