We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Button style font size did not have effect. how to set default font size by code for all. version about 20240706 os freebsd 14.1
see code in picture
No response
macOS
The text was updated successfully, but these errors were encountered:
You can use this code to set the font size of the button text:
bt := core.NewButton(b).SetText("Hello") tree.AddChildInit(bt, "text", func(w *core.Text) { w.Styler(func(s *styles.Style) { s.Font.Size.Dp(48) s.Text.LineHeight.Dp(48) }) })
If you want to change the font size of all elements, you can change the Font size in the Settings menu.
Font size
Settings
Sorry, something went wrong.
No branches or pull requests
Describe the bug
Button style font size did not have effect. how to set default font size by code for all.
version about 20240706
os freebsd 14.1
How to reproduce
see code in picture
Example code
No response
Relevant output
No response
Platform
macOS
The text was updated successfully, but these errors were encountered: