Skip to content

Commit d37a113

Browse files
committed
Merge pull request godotengine#107092 from bruvzg/rtl_ol_offset
[RTL] Fix outline offset.
2 parents 8862d4c + 3652614 commit d37a113

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scene/gui/rich_text_label.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,10 +1091,16 @@ int RichTextLabel::_draw_line(ItemFrame *p_frame, int p_line, const Vector2 &p_o
10911091
Color font_shadow_color = p_font_shadow_color;
10921092
bool txt_visible = (font_color.a != 0);
10931093
if (step == DRAW_STEP_OUTLINE && (outline_size <= 0 || font_outline_color.a == 0)) {
1094+
processed_glyphs_step += glyphs[i].repeat;
1095+
off_step.x += glyphs[i].advance * glyphs[i].repeat;
10941096
continue;
10951097
} else if (step == DRAW_STEP_SHADOW_OUTLINE && (font_shadow_color.a == 0 || p_shadow_outline_size <= 0)) {
1098+
processed_glyphs_step += glyphs[i].repeat;
1099+
off_step.x += glyphs[i].advance * glyphs[i].repeat;
10961100
continue;
10971101
} else if (step == DRAW_STEP_SHADOW && (font_shadow_color.a == 0)) {
1102+
processed_glyphs_step += glyphs[i].repeat;
1103+
off_step.x += glyphs[i].advance * glyphs[i].repeat;
10981104
continue;
10991105
} else if (step == DRAW_STEP_TEXT) {
11001106
Color user_ul_color = Color(0, 0, 0, 0);

0 commit comments

Comments
 (0)