From 8459aeaab0047c1ee96c6987f6432420a6057c6b Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Mon, 27 Feb 2023 16:21:28 +0200 Subject: [Font] Implement `get_char_from_glyph_index` function. --- modules/text_server_adv/text_server_adv.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/text_server_adv/text_server_adv.h') 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 textures; + HashMap inv_glyph_map; HashMap glyph_map; HashMap 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 &); -- cgit v1.2.3