diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-02-02 11:39:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-02 11:39:54 +0100 |
commit | 2daa3ae1fd2e235eb5437ec168efa42d9335ea45 (patch) | |
tree | 4b531c4e67fe29d4510fa99c624cf15661081a62 /scene/resources/text_line.h | |
parent | 050908626f64c0c984e078055215c8b5f6231ce3 (diff) | |
parent | 215bede6ff494bb371fa610b6d003fe1cb7d1c7d (diff) |
Merge pull request #57511 from bruvzg/ts_font_change
Improve performance of the font change.
Diffstat (limited to 'scene/resources/text_line.h')
-rw-r--r-- | scene/resources/text_line.h | 2 |
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); |