Add push_* methods for fonts in rich_text_label

Provides method to push different font styles.

If no fonts are set nothing will happen, when the methods are used.

Fixes #27850
This commit is contained in:
Florian Bergmann
2019-10-16 15:22:56 +02:00
parent a1033aea51
commit 47000f8860
2 changed files with 45 additions and 0 deletions

View File

@ -410,6 +410,11 @@ public:
void add_newline();
bool remove_line(const int p_line);
void push_font(const Ref<Font> &p_font);
void push_normal();
void push_bold();
void push_bold_italics();
void push_italics();
void push_mono();
void push_color(const Color &p_color);
void push_underline();
void push_strikethrough();