I investigated this, and egui depends on the crate epaint_default_fonts, this crate bundles a couple of different fonts and that can easily be unbundled.
But one of the fonts is an ubuntu font and the ubuntu font family is non-free, and that would pull this whole dependency tree into non-free/contrib. I have raised this issue upstream here: https://github.com/emilk/egui/issues/7892 //Alex

