Преглед на файлове

Merge pull request #96878 from bruvzg/rtl_font_reload

[RTL] Fix font not updated for some spans.
Rémi Verschelde преди 1 година
родител
ревизия
ae50e9ef7b
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      scene/gui/rich_text_label.cpp

+ 2 - 0
scene/gui/rich_text_label.cpp

@@ -333,6 +333,8 @@ void RichTextLabel::_update_line_font(ItemFrame *p_frame, int p_line, const Ref<
 				font_size = font_size_it->font_size;
 			}
 			TS->shaped_set_span_update_font(t, i, font->get_rids(), font_size, font->get_opentype_features());
+		} else {
+			TS->shaped_set_span_update_font(t, i, p_base_font->get_rids(), p_base_font_size, p_base_font->get_opentype_features());
 		}
 	}