|
@@ -858,7 +858,7 @@ bool DynamicFontImportSettings::_char_update(int32_t p_char) {
|
|
if (import_variation_data->selected_chars.has(p_char)) {
|
|
if (import_variation_data->selected_chars.has(p_char)) {
|
|
import_variation_data->selected_chars.erase(p_char);
|
|
import_variation_data->selected_chars.erase(p_char);
|
|
return false;
|
|
return false;
|
|
- } else if (font_main.is_valid() && font_main.is_valid() && import_variation_data->selected_glyphs.has(font_main->get_glyph_index(16, p_char))) {
|
|
|
|
|
|
+ } else if (font_main.is_valid() && import_variation_data->selected_glyphs.has(font_main->get_glyph_index(16, p_char))) {
|
|
import_variation_data->selected_glyphs.erase(font_main->get_glyph_index(16, p_char));
|
|
import_variation_data->selected_glyphs.erase(font_main->get_glyph_index(16, p_char));
|
|
return false;
|
|
return false;
|
|
} else {
|
|
} else {
|
|
@@ -1083,7 +1083,7 @@ void DynamicFontImportSettings::open_settings(const String &p_path) {
|
|
font_preview_label->set_text(sample);
|
|
font_preview_label->set_text(sample);
|
|
|
|
|
|
Ref<Font> bold_font = get_theme_font(SNAME("bold"), SNAME("EditorFonts"));
|
|
Ref<Font> bold_font = get_theme_font(SNAME("bold"), SNAME("EditorFonts"));
|
|
- if (bold_font.is_valid() && bold_font.is_valid()) {
|
|
|
|
|
|
+ if (bold_font.is_valid()) {
|
|
font_name_label->add_theme_font_override("bold_font", bold_font);
|
|
font_name_label->add_theme_font_override("bold_font", bold_font);
|
|
}
|
|
}
|
|
font_name_label->set_text(font_name);
|
|
font_name_label->set_text(font_name);
|