I'm trying to display some text in egui, on background colours that vary and are beyond my control. In order for it to remain clearly visible on all backgrounds, I would like to give it contrasting fill and stroke colours, but I can't seem to find support for this in egui.
(Yes, I can set the background colour, but that makes a rectangular block, which is very ugly.)
egui doesn't have "stroke and fill" operations for text, because it renders text through font rasterization. The most you can do with fonts are change the color and some styling (like whether it is bold or italicized): TextFormat in epaint::text - Rust