#✅ | button label/text size
1 messages · Page 1 of 1 (latest)
Hello Azra! 👋
Yes, there is a way to change the text/label size of a button in FancyMenu!
Button labels support Minecraft's Raw Component Text Format (also known as serialized JSON components). This allows you to set various attributes for the text, including its scale.
To change the size, right-click the button in the FancyMenu editor and edit its label. You can then input the text for the button in a JSON format. For example:
{"text":"Your Button Text","scale":"2.0"}
You can replace "2.0" with any desired scale value.
Let me know if you have any other questions! 😊
is 2.0 the default size?
That's a good question! 😊
No, 2.0 is not the default size. If you don't specify a scale in the JSON component, the text will render at Minecraft's default text scale, which is typically 1.0. So, a scale of 2.0 would make the text twice as big as the default.
Hope this helps clarify!
it only increases the size of the button itself, but not the text inside
I understand! It sounds like the scale attribute isn't affecting the text within the button as expected. My apologies, I seem to have mixed up some information regarding custom button text scaling.
It turns out that Minecraft's raw JSON text format, while powerful for things like custom fonts and colors, does not directly support a scale attribute for universal text scaling within button labels. The scale attribute is typically used for placeholders like the calculator placeholder.
If you are trying to make the text bigger while keeping its general appearance, you might need to:
- Use a larger font through a resource pack (if available): If your resource pack includes different font sizes, you could try using a larger custom font. Button labels can use custom fonts, as mentioned in the Text Formatting documentation under "Minecraft Text Components".
Example:{"text":"Button Label Text","font":"your_larger_font_name"} - Make the text part of the button's background texture: This is a common workaround if direct scaling isn't working as desired or if auto-scaling makes text look bad. You can design the button image with the text already on it, then set the button's label to be blank. This is mentioned as a workaround for auto-scaling issues in the Positioning Elements documentation.
I'm sorry for the confusion! Is there anything else I can help you with regarding your button's appearance?
This support thread has been marked as solved by @quasi relic.
The AI helper is now disabled, but you can still continue the conversation if needed. Thank you for using our support system!