mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
[RTL] Fix outline offset.
This commit is contained in:
parent
e45cc68092
commit
3652614837
1 changed files with 6 additions and 0 deletions
|
|
@ -1091,10 +1091,16 @@ int RichTextLabel::_draw_line(ItemFrame *p_frame, int p_line, const Vector2 &p_o
|
|||
Color font_shadow_color = p_font_shadow_color;
|
||||
bool txt_visible = (font_color.a != 0);
|
||||
if (step == DRAW_STEP_OUTLINE && (outline_size <= 0 || font_outline_color.a == 0)) {
|
||||
processed_glyphs_step += glyphs[i].repeat;
|
||||
off_step.x += glyphs[i].advance * glyphs[i].repeat;
|
||||
continue;
|
||||
} else if (step == DRAW_STEP_SHADOW_OUTLINE && (font_shadow_color.a == 0 || p_shadow_outline_size <= 0)) {
|
||||
processed_glyphs_step += glyphs[i].repeat;
|
||||
off_step.x += glyphs[i].advance * glyphs[i].repeat;
|
||||
continue;
|
||||
} else if (step == DRAW_STEP_SHADOW && (font_shadow_color.a == 0)) {
|
||||
processed_glyphs_step += glyphs[i].repeat;
|
||||
off_step.x += glyphs[i].advance * glyphs[i].repeat;
|
||||
continue;
|
||||
} else if (step == DRAW_STEP_TEXT) {
|
||||
bool has_ul = _find_underline(it);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue