Merge pull request #69981 from bruvzg/dyn_font_import_outline
Fix advanced font import dialog not saving outline sizes of pre-render configs correctly.
This commit is contained in:
commit
f16aa54795
1 changed files with 10 additions and 1 deletions
|
@ -954,9 +954,18 @@ void DynamicFontImportSettings::_re_import() {
|
|||
Dictionary preload_config;
|
||||
preload_config["name"] = vars_item->get_text(0);
|
||||
|
||||
Size2i conf_size = Vector2i(16, 0);
|
||||
for (const KeyValue<StringName, Variant> &E : import_variation_data->settings) {
|
||||
preload_config[E.key] = E.value;
|
||||
if (E.key == "size") {
|
||||
conf_size.x = E.value;
|
||||
}
|
||||
if (E.key == "outline_size") {
|
||||
conf_size.y = E.value;
|
||||
} else {
|
||||
preload_config[E.key] = E.value;
|
||||
}
|
||||
}
|
||||
preload_config["size"] = conf_size;
|
||||
|
||||
Array chars;
|
||||
for (const char32_t &E : import_variation_data->selected_chars) {
|
||||
|
|
Loading…
Reference in a new issue