summaryrefslogtreecommitdiffstats
path: root/modules/text_server_adv/text_server_adv.h
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2023-02-27 16:21:28 +0200
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2023-03-01 09:29:11 +0200
commit8459aeaab0047c1ee96c6987f6432420a6057c6b (patch)
tree397023f42bb30ee94cc081ffc7f3c390356fd0d7 /modules/text_server_adv/text_server_adv.h
parent2f34a35722141aaee6c226c08fcd224ec3c1d04d (diff)
downloadredot-engine-8459aeaab0047c1ee96c6987f6432420a6057c6b.tar.gz
[Font] Implement `get_char_from_glyph_index` function.
Diffstat (limited to 'modules/text_server_adv/text_server_adv.h')
-rw-r--r--modules/text_server_adv/text_server_adv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/text_server_adv/text_server_adv.h b/modules/text_server_adv/text_server_adv.h
index 02244a294e..6216c40b1b 100644
--- a/modules/text_server_adv/text_server_adv.h
+++ b/modules/text_server_adv/text_server_adv.h
@@ -272,6 +272,7 @@ class TextServerAdvanced : public TextServerExtension {
Vector2i size;
Vector<ShelfPackTexture> textures;
+ HashMap<int64_t, int64_t> inv_glyph_map;
HashMap<int32_t, FontGlyph> glyph_map;
HashMap<Vector2i, Vector2> kerning_map;
hb_font_t *hb_handle = nullptr;
@@ -812,6 +813,7 @@ public:
MODBIND3RC(Vector2, font_get_kerning, const RID &, int64_t, const Vector2i &);
MODBIND4RC(int64_t, font_get_glyph_index, const RID &, int64_t, int64_t, int64_t);
+ MODBIND3RC(int64_t, font_get_char_from_glyph_index, const RID &, int64_t, int64_t);
MODBIND2RC(bool, font_has_char, const RID &, int64_t);
MODBIND1RC(String, font_get_supported_chars, const RID &);