[RTL] Fix font not updated for some spans.

(cherry picked from commit e517eaf053)
This commit is contained in:
bruvzg 2024-09-11 23:02:00 +03:00 committed by Rémi Verschelde
parent 90f1c3e7bd
commit 69713dadf0
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 2 additions and 0 deletions

View File

@ -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());
}
}