-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Fix function description for Font.get_char_size()
#88444
Conversation
Removed description implying you can pass a second char in order to account for kerning
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Current description is literally wrong so yes
@@ -136,7 +136,7 @@ | |||
<param index="0" name="char" type="int" /> | |||
<param index="1" name="font_size" type="int" /> | |||
<description> | |||
Returns the size of a character, optionally taking kerning into account if the next character is provided. | |||
Returns the size of a character. Does not take kerning into account. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if mentioning kerning is even necessary anymore. I don't know how any reader would assume kerning is accounted for.
Does it hurt though? No...?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair point, I don't mind either way
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's fine to be explicit.
Font.get_char_size()
Thanks! And congrats for your first merged Godot contribution 🎉 |
Cherry-picked for 4.2.2. |
Bugsquad edit: closes #88348
Removed description implying you can pass a second char in order to account for kerning