Skip to content
New issue

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

Ability to change font size in RichTextLabel without requiring separate font resources when using DynamicFont #5557

Closed
Tracked by #39144
Calinou opened this issue Jul 5, 2016 · 10 comments

Comments

@Calinou
Copy link
Member

Calinou commented Jul 5, 2016

Having a [size=(font height in pixels)] tag for changing the font size (when using a DynamicFont) without requiring separate font resources for each size would be very helpful for things like titles.

Perhaps the font height should be settable using a percentage as well, which would then be relative to the default font size of the RichTextLabel.

@Calinou
Copy link
Member Author

Calinou commented Apr 4, 2018

Update: This issue is still relevant as of a1f835d.

@JustusPan
Copy link

I want to create a issue for this and then find this discussion. Strongly hoping this feature can be brought to godot early.

I'm working on a prototype and want to create many utility components without dependency outside of godot. And the "size of text" is a big problem for me, I can only change the size of text by tuning the rect_scale property of Control(which is not the way i expect). Supporting this tag for bbcode in godot is meaningful and helping people focus on their prototype.

@girng
Copy link

girng commented Aug 31, 2019

This is a good idea. I always thought having the extra font resources for each size was normal. But this seems like the correct way to do it

edit: Oh gosh, Jul 5, 2016. Time flies

@Skullfurious
Copy link

Skullfurious commented Sep 22, 2020

This still isn't supported. Is bbcode only partially supported or are there plans to fully support it?

@Calinou
Copy link
Member Author

Calinou commented Sep 22, 2020

@Skullfurious BBCode isn't a formal standard, so there is no "full" or "partial" support to speak of 🙂

@realkotob
Copy link
Contributor

realkotob commented Sep 22, 2020

Not what you want to hear (me neither) but there's this PR #29762 that already does this that can be useful @Skullfurious

@akien-mga
Copy link
Member

Fixed by #42595.

@Tyrannosaurus1234
Copy link

Was this actually fixed? I'm using 3.3[.0] and the [size] tag definitely does not work, nor is it mentioned in the BBCode documentation. The [center] tag implemented in #42595 works as expected, but size does not. My apologies if I'm missing something obvious.

@akien-mga
Copy link
Member

This is fixed in 4.0, and the fix can't be backported.

@Tyrannosaurus1234
Copy link

Aaah, I see. Thank you. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants