Skip to content

tweak ui scale globally & how to set font size #172

Answered by emilk
adsick asked this question in Q&A
Discussion options

You must be logged in to vote

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 for FontDefinitions you can see how the font size for buttons is set: https://docs.rs/egui/0.9.0/egui/struct.FontDefinitions.html

Replies: 3 comments 10 replies

Comment options

You must be logged in to vote
4 replies
@adsick
Comment options

@emilk
Comment options

@buxx
Comment options

@emilk
Comment options

Answer selected by emilk
Comment options

You must be logged in to vote
2 replies
@buxx
Comment options

@frankvgompel
Comment options

Comment options

You must be logged in to vote
4 replies
@buxx
Comment options

@sstickl
Comment options

@aurexav
Comment options

@buxx
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
7 participants