From 314d0412a53b8e012ec183c503a69cc32e24ab34 Mon Sep 17 00:00:00 2001 From: jussi Date: Sun, 26 Jun 2022 15:03:08 +0300 Subject: Get font info. --- src/lua_core.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/lua_core.c') diff --git a/src/lua_core.c b/src/lua_core.c index f17872e..23f6534 100644 --- a/src/lua_core.c +++ b/src/lua_core.c @@ -529,6 +529,9 @@ bool luaInit() { luaRegister(); defineGlobals(); + // SetConfigFlags( FLAG_VSYNC_HINT ); + // SetWindowState( FLAG_VSYNC_HINT ); + return luaCallMain(); } @@ -1060,6 +1063,9 @@ void luaRegister() { lua_register( L, "RL_DrawTextPro", ltextDrawTextPro ); /* Misc. */ lua_register( L, "RL_MeasureText", ltextMeasureText ); + lua_register( L, "RL_GetFontBaseSize", ltextGetFontBaseSize ); + lua_register( L, "RL_GetFontGlyphCount", ltextGetFontGlyphCount ); + lua_register( L, "RL_GetFontGlyphPadding", ltextGetFontGlyphPadding ); /* Audio. */ /* Audio device management. */ -- cgit v1.2.3