You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Notan, calling egui::Context::set_zoom_factor does not change the size of the UI, only the sharpness of the UI elements. I checked that set_zoom_factor works correctly in eframe.
This is particularly unfortunate because egui's default font size on my system in either WebAssembly or Wine is about 5 points (with either notan or eframe).
The text was updated successfully, but these errors were encountered:
A workaround is to use Context::style_mut to change all of the font sizes during initialization. One thing that was not obvious to me is that it's necessary to call Graphics::render on the egui output, even though there is nothing to render yet, or else the app crashes with the error "GL_INVALID_VALUE: Offset overflows texture dimensions."
I ran into this as well last week. This would be great for accessibility. I'll try your workaround @dgulotta , thank you for that! My use case would be to allow changing UI scale at runtime and not during initialization, I'll try if the workaround works in that case too.
In Notan, calling egui::Context::set_zoom_factor does not change the size of the UI, only the sharpness of the UI elements. I checked that set_zoom_factor works correctly in eframe.
This is particularly unfortunate because egui's default font size on my system in either WebAssembly or Wine is about 5 points (with either notan or eframe).
The text was updated successfully, but these errors were encountered: