diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-12-08 22:01:07 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-12-15 23:16:02 +0200 |
commit | 53c76fa5d16cd71f98081c307256e35e27212c11 (patch) | |
tree | 34dbaa70cd614f0bb674603dd136df1fe4b0d85b /modules/text_server_fb/text_server_fb.h | |
parent | 15631e24f740872c2be7cf81dd252c38b4aa174e (diff) | |
download | redot-engine-53c76fa5d16cd71f98081c307256e35e27212c11.tar.gz |
[RTL/TextServer] Add baseline inline alignment mode for objects and RTL tables.
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, 3 insertions, 2 deletions
diff --git a/modules/text_server_fb/text_server_fb.h b/modules/text_server_fb/text_server_fb.h index f8a05f9433..11f37ab6d1 100644 --- a/modules/text_server_fb/text_server_fb.h +++ b/modules/text_server_fb/text_server_fb.h @@ -417,6 +417,7 @@ class TextServerFallback : public TextServerExtension { int pos = 0; InlineAlignment inline_align = INLINE_ALIGNMENT_CENTER; Rect2 rect; + float baseline = 0; }; HashMap<Variant, EmbeddedObject, VariantHasher, VariantComparator> objects; @@ -743,8 +744,8 @@ public: MODBIND2RC(int64_t, shaped_text_get_spacing, const RID &, SpacingType); MODBIND7R(bool, shaped_text_add_string, const RID &, const String &, const TypedArray<RID> &, int64_t, const Dictionary &, const String &, const Variant &); - MODBIND5R(bool, shaped_text_add_object, const RID &, const Variant &, const Size2 &, InlineAlignment, int64_t); - MODBIND4R(bool, shaped_text_resize_object, const RID &, const Variant &, const Size2 &, InlineAlignment); + MODBIND6R(bool, shaped_text_add_object, const RID &, const Variant &, const Size2 &, InlineAlignment, int64_t, float); + MODBIND5R(bool, shaped_text_resize_object, const RID &, const Variant &, const Size2 &, InlineAlignment, float); MODBIND1RC(int64_t, shaped_get_span_count, const RID &); MODBIND2RC(Variant, shaped_get_span_meta, const RID &, int64_t); |