gdquest-demos / godot-kickstarter-2019

Create your Own Games with Godot, the Free Game Engine: sources from the January Kickstarter project from GDQuest
MIT License
244 stars 270 forks source link

Fix Bounding Box to keep the most suitable size #40

Closed henriiquecampos closed 5 years ago

henriiquecampos commented 5 years ago

The PR aims to close #37 by checking which is larger, the current vertical size or the calculated one, and keep the largest size.

Also encapsulated the line width calculation into the get_longest_line_width method, among other minor refactoring, like get_control_font to encapsulate the font accessing procedures.