Merge pull request #114488 from BenLubar/text-server-glyph-span-index
Add `span_index` to `TextServer.shaped_text_get_glyphs` and related methods when accessed from GDScript.
This commit is contained in:
commit
94f3b73cec
1 changed files with 3 additions and 0 deletions
|
|
@ -2310,6 +2310,7 @@ TypedArray<Dictionary> 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<Dictionary> 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<Dictionary> 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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue