emilk / egui

egui: an easy-to-use immediate mode GUI in Rust that runs on both web and native
https://www.egui.rs/
Apache License 2.0
22.53k stars 1.61k forks source link

Fix: ctx.set_fonts() Doesn't Apply Fonts with Same Name #5345

Open rustbasic opened 3 weeks ago

rustbasic commented 3 weeks ago

Fix: ctx.set_fonts() Doesn't Apply Fonts with Same Name

If a font file named my_font is set using ctx.set_fonts() and then another font file with the same name is set again using ctx.set_fonts(), it won't be applied.

  1. Additionally, it's recommended to apply fonts immediately using ctx.set_fonts().
  2. This will also allow to reset the fonts and texture.
github-actions[bot] commented 3 weeks ago

Preview available at https://egui-pr-preview.github.io/pr/5345-patch146 Note that it might take a couple seconds for the update to show up after the preview_build workflow has completed.