diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-02-24 12:55:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-24 12:55:36 +0100 |
commit | a527c6856bbc59698793ae67aa6f034b31231a8c (patch) | |
tree | 28bacef7857161b51ba598010c0391ba9d765e42 /modules/text_server_adv/text_server_adv.h | |
parent | 19bfbcfec29b8791711e7f99bcc4ba28e932d3f2 (diff) | |
parent | bee718f1affca7ccf6ce2dbe3bf69a2cc1882cce (diff) |
Merge pull request #46045 from bruvzg/text_server_bmp_create
[TextServer] Restores bitmap font dynamic construction functions.
Diffstat (limited to 'modules/text_server_adv/text_server_adv.h')
-rw-r--r-- | modules/text_server_adv/text_server_adv.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/text_server_adv/text_server_adv.h b/modules/text_server_adv/text_server_adv.h index c5ebe61bc3..b53b5716e5 100644 --- a/modules/text_server_adv/text_server_adv.h +++ b/modules/text_server_adv/text_server_adv.h @@ -126,6 +126,11 @@ public: virtual RID create_font_system(const String &p_name, int p_base_size = 16) override; virtual RID create_font_resource(const String &p_filename, int p_base_size = 16) override; virtual RID create_font_memory(const uint8_t *p_data, size_t p_size, const String &p_type, int p_base_size = 16) override; + virtual RID create_font_bitmap(float p_height, float p_ascent, int p_base_size = 16) override; + + virtual void font_bitmap_add_texture(RID p_font, const Ref<Texture> &p_texture) override; + virtual void font_bitmap_add_char(RID p_font, char32_t p_char, int p_texture_idx, const Rect2 &p_rect, const Size2 &p_align, float p_advance) override; + virtual void font_bitmap_add_kerning_pair(RID p_font, char32_t p_A, char32_t p_B, int p_kerning) override; virtual float font_get_height(RID p_font, int p_size) const override; virtual float font_get_ascent(RID p_font, int p_size) const override; |