-
Hi, I want to have access to scale of everything so I can make ui larger and easier to work around. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
If you want to scale the entire GUI use the To change the fonts use |
Beta Was this translation helpful? Give feedback.
-
Could anyone explain this to me? For instance where do I put Context::set_pixels_per_point() in the "Hello world" example: https://github.com/emilk/egui/blob/master/examples/hello_world/src/main.rs And what is the default value of this? |
Beta Was this translation helpful? Give feedback.
-
Regarding |
Beta Was this translation helpful? Give feedback.
If you want to scale the entire GUI use the
pixels_per_point
option (the native example app has a slider for gui scale). For the web version just zoom the web page (like you would any web page).To change the fonts use
set_fonts
. In the example forFontDefinitions
you can see how the font size for buttons is set: https://docs.rs/egui/0.9.0/egui/struct.FontDefinitions.html