From 71cc89c3033365746e5dcdb933c460c8e0da7fb0 Mon Sep 17 00:00:00 2001 From: jussi Date: Sun, 28 Jan 2024 13:10:18 +0200 Subject: Text codepoints management functions. --- src/lua_core.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/lua_core.c') diff --git a/src/lua_core.c b/src/lua_core.c index 3465fce..a7c9f57 100644 --- a/src/lua_core.c +++ b/src/lua_core.c @@ -1757,6 +1757,14 @@ void luaRegister() { assingGlobalFunction( "GetGlyphInfoOffset", ltextGetGlyphInfoOffset ); assingGlobalFunction( "GetGlyphInfoAdvanceX", ltextGetGlyphInfoAdvanceX ); assingGlobalFunction( "GetGlyphInfoImage", ltextGetGlyphInfoImage ); + /* Text codepoints management functions (unicode characters). */ + assingGlobalFunction( "LoadUTF8", ltextLoadUTF8 ); + assingGlobalFunction( "LoadCodepoints", ltextLoadCodepoints ); + assingGlobalFunction( "GetCodepointCount", ltextGetCodepointCount ); + assingGlobalFunction( "GetCodepoint", ltextGetCodepoint ); + assingGlobalFunction( "GetCodepointNext", ltextGetCodepointNext ); + assingGlobalFunction( "GetCodepointPrevious", ltextGetCodepointPrevious ); + assingGlobalFunction( "CodepointToUTF8", ltextCodepointToUTF8 ); /* Audio. */ /* Audio device management functions. */ -- cgit v1.2.3