You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Refactor Font configuration and import UI, and Font resources.
This commit is contained in:
@@ -126,7 +126,7 @@ void ThemeEditorPreview::_draw_picker_overlay() {
|
||||
}
|
||||
|
||||
Rect2 highlight_label_rect = highlight_rect;
|
||||
highlight_label_rect.size = theme_cache.preview_picker_font->get_string_size(highlight_name, theme_cache.font_size);
|
||||
highlight_label_rect.size = theme_cache.preview_picker_font->get_string_size(highlight_name, HORIZONTAL_ALIGNMENT_LEFT, -1, theme_cache.font_size);
|
||||
|
||||
int margin_top = theme_cache.preview_picker_label->get_margin(SIDE_TOP);
|
||||
int margin_left = theme_cache.preview_picker_label->get_margin(SIDE_LEFT);
|
||||
|
||||
Reference in New Issue
Block a user