Skip to content

Commit

Permalink
[TextServer] Reset subpixel shift on blank glyphs.
Browse files Browse the repository at this point in the history
  • Loading branch information
bruvzg committed Oct 30, 2024
1 parent 8004c75 commit f7c3808
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/text_server_adv/text_server_adv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6233,6 +6233,9 @@ void TextServerAdvanced::_shape_run(ShapedTextDataAdvanced *p_sd, int64_t p_star
#endif

gl.index = glyph_info[i].codepoint;
if (u_isblank(p_sd->text[glyph_info[i].cluster])) {
adv_rem = 0.0; // Reset on blank.
}
if (gl.index != 0) {
FontGlyph fgl;
_ensure_glyph(fd, fss, gl.index | mod, fgl);
Expand Down

0 comments on commit f7c3808

Please sign in to comment.