summaryrefslogtreecommitdiffstats
path: root/scene/resources/text_line.h
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2022-01-20 09:30:42 +0200
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2022-02-02 11:20:44 +0200
commit215bede6ff494bb371fa610b6d003fe1cb7d1c7d (patch)
tree4b531c4e67fe29d4510fa99c624cf15661081a62 /scene/resources/text_line.h
parent050908626f64c0c984e078055215c8b5f6231ce3 (diff)
downloadredot-engine-215bede6ff494bb371fa610b6d003fe1cb7d1c7d.tar.gz
[TextServer] Add function to change font, font size, and OpenType features without invalidating line break points, justification points, or recreating shaped text buffer.
Diffstat (limited to 'scene/resources/text_line.h')
-rw-r--r--scene/resources/text_line.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/text_line.h b/scene/resources/text_line.h
index e68049ee45..c5762db0f2 100644
--- a/scene/resources/text_line.h
+++ b/scene/resources/text_line.h
@@ -86,7 +86,7 @@ public:
void set_preserve_control(bool p_enabled);
bool get_preserve_control() const;
- bool add_string(const String &p_text, const Ref<Font> &p_fonts, int p_size, const Dictionary &p_opentype_features = Dictionary(), const String &p_language = "");
+ bool add_string(const String &p_text, const Ref<Font> &p_fonts, int p_size, const Dictionary &p_opentype_features = Dictionary(), const String &p_language = "", const Variant &p_meta = Variant());
bool add_object(Variant p_key, const Size2 &p_size, InlineAlignment p_inline_align = INLINE_ALIGNMENT_CENTER, int p_length = 1);
bool resize_object(Variant p_key, const Size2 &p_size, InlineAlignment p_inline_align = INLINE_ALIGNMENT_CENTER);