egui
egui copied to clipboard
Function : Returns the `FontId` corresponding to the given `TextStyle`
Function : Returns the FontId corresponding to the given TextStyle
Before : hard
let font_id = TextStyle::Button.resolve(ui.style());
After : easy
let font_id = ui.text_style_font_id(&TextStyle::Button);
I'm not sure what would be a good name for the function.