From 288530eb47fb7d71d2dade5f97d5b6702f88d122 Mon Sep 17 00:00:00 2001 From: Ben Lubar Date: Wed, 31 Dec 2025 16:39:18 -0600 Subject: [PATCH] Add span_index to TextServer methods that wrap Glyph for gdscript. --- servers/text/text_server.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/servers/text/text_server.cpp b/servers/text/text_server.cpp index 9972696c3d6..9d10ed82c14 100644 --- a/servers/text/text_server.cpp +++ b/servers/text/text_server.cpp @@ -2310,6 +2310,7 @@ TypedArray TextServer::_shaped_text_get_glyphs_wrapper(const RID &p_ glyph["font_rid"] = glyphs[i].font_rid; glyph["font_size"] = glyphs[i].font_size; glyph["index"] = glyphs[i].index; + glyph["span_index"] = glyphs[i].span_index; ret.push_back(glyph); } @@ -2335,6 +2336,7 @@ TypedArray TextServer::_shaped_text_sort_logical_wrapper(const RID & glyph["font_rid"] = glyphs[i].font_rid; glyph["font_size"] = glyphs[i].font_size; glyph["index"] = glyphs[i].index; + glyph["span_index"] = glyphs[i].span_index; ret.push_back(glyph); } @@ -2360,6 +2362,7 @@ TypedArray TextServer::_shaped_text_get_ellipsis_glyphs_wrapper(cons glyph["font_rid"] = glyphs[i].font_rid; glyph["font_size"] = glyphs[i].font_size; glyph["index"] = glyphs[i].index; + glyph["span_index"] = glyphs[i].span_index; ret.push_back(glyph); }