[TextServer] Fix hex code box positions in vertical text layout.
This commit is contained in:
parent
e6751549cf
commit
02a4b3f859
1 changed files with 2 additions and 0 deletions
|
@ -5072,6 +5072,8 @@ void TextServerAdvanced::_shape_run(ShapedTextDataAdvanced *p_sd, int64_t p_star
|
|||
p_sd->ascent = MAX(p_sd->ascent, get_hex_code_box_size(fs, gl.index).y);
|
||||
} else {
|
||||
gl.advance = get_hex_code_box_size(fs, gl.index).y;
|
||||
gl.y_off = get_hex_code_box_size(fs, gl.index).y;
|
||||
gl.x_off = -Math::round(get_hex_code_box_size(fs, gl.index).x * 0.5);
|
||||
p_sd->ascent = MAX(p_sd->ascent, Math::round(get_hex_code_box_size(fs, gl.index).x * 0.5));
|
||||
p_sd->descent = MAX(p_sd->descent, Math::round(get_hex_code_box_size(fs, gl.index).x * 0.5));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue