1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-09 12:50:35 +00:00

Merge pull request #46045 from bruvzg/text_server_bmp_create

[TextServer] Restores bitmap font dynamic construction functions.
This commit is contained in:
Rémi Verschelde
2021-02-24 12:55:36 +01:00
committed by GitHub
20 changed files with 415 additions and 142 deletions

View File

@@ -74,6 +74,10 @@ typedef struct {
godot_rid (*create_font_system)(void *, const godot_string *, int);
godot_rid (*create_font_resource)(void *, const godot_string *, int);
godot_rid (*create_font_memory)(void *, const uint8_t *, size_t, godot_string *, int);
godot_rid (*create_font_bitmap)(void *, float, float, int);
void (*font_bitmap_add_texture)(void *, godot_rid *, const godot_object *);
void (*font_bitmap_add_char)(void *, godot_rid *, char32_t, int, const godot_rect2 *, const godot_vector2 *, float);
void (*font_bitmap_add_kerning_pair)(void *, godot_rid *, char32_t, char32_t, int);
float (*font_get_height)(void *, godot_rid *, int);
float (*font_get_ascent)(void *, godot_rid *, int);
float (*font_get_descent)(void *, godot_rid *, int);