summaryrefslogtreecommitdiff
path: root/src/text.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/text.c')
-rw-r--r--src/text.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/text.c b/src/text.c
index 71bf14f..309f6da 100644
--- a/src/text.c
+++ b/src/text.c
@@ -280,6 +280,21 @@ int ltextLoadFontFromData( lua_State* L ) {
}
/*
+> font = RL.FontCopy( Font font )
+
+Load font copy as new userdata
+
+- Success return Font
+*/
+int ltextFontCopy( lua_State* L ) {
+ Font* font = uluaGetFont( L, 1 );
+
+ uluaPushFont( L, *font );
+
+ return 1;
+}
+
+/*
> isReady = RL.IsFontReady( Font font )
Check if a font is ready