diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2024-03-11 16:28:58 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2024-03-12 11:28:45 +0200 |
commit | 433de7f1a86191d912d8cd5e2ed53e76916170fe (patch) | |
tree | aa9cc6264c800881aa5ed93caaa8cbe3b5eab7aa /modules/text_server_fb/text_server_fb.h | |
parent | f040a351c2f27c6b86c40c71a28babf99dd0b9bd (diff) | |
download | redot-engine-433de7f1a86191d912d8cd5e2ed53e76916170fe.tar.gz |
[RTL] Use "visible characters" property for inline object visibility
Diffstat (limited to 'modules/text_server_fb/text_server_fb.h')
-rw-r--r-- | modules/text_server_fb/text_server_fb.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/text_server_fb/text_server_fb.h b/modules/text_server_fb/text_server_fb.h index 9cdf20f3fa..401c02a8ac 100644 --- a/modules/text_server_fb/text_server_fb.h +++ b/modules/text_server_fb/text_server_fb.h @@ -421,7 +421,8 @@ class TextServerFallback : public TextServerExtension { Vector<Span> spans; struct EmbeddedObject { - int pos = 0; + int start = -1; + int end = -1; InlineAlignment inline_align = INLINE_ALIGNMENT_CENTER; Rect2 rect; double baseline = 0; @@ -825,6 +826,8 @@ public: MODBIND1RC(Array, shaped_text_get_objects, const RID &); MODBIND2RC(Rect2, shaped_text_get_object_rect, const RID &, const Variant &); + MODBIND2RC(Vector2i, shaped_text_get_object_range, const RID &, const Variant &); + MODBIND2RC(int64_t, shaped_text_get_object_glyph, const RID &, const Variant &); MODBIND1RC(Size2, shaped_text_get_size, const RID &); MODBIND1RC(double, shaped_text_get_ascent, const RID &); |