Skip to content

Commit

Permalink
Merge pull request #96878 from bruvzg/rtl_font_reload
Browse files Browse the repository at this point in the history
[RTL] Fix font not updated for some spans.
  • Loading branch information
akien-mga committed Sep 12, 2024
2 parents 573badf + e517eaf commit ae50e9e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scene/gui/rich_text_label.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}

Expand Down

0 comments on commit ae50e9e

Please sign in to comment.