From 26a11a4b7f32a6fc2d131e4c78fe1ca40cc6ac8a Mon Sep 17 00:00:00 2001 From: jussi Date: Thu, 10 Mar 2022 17:53:43 +0200 Subject: Measure text. --- API.md | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) (limited to 'API.md') diff --git a/API.md b/API.md index 434ab4b..58a2171 100644 --- a/API.md +++ b/API.md @@ -641,6 +641,12 @@ Set title for window ( Only PLATFORM_DESKTOP ) --- +> RL_lcoreCloseWindow() + +Close window and unload OpenGL context and free all resources + +--- + ## Core - Timing --- @@ -1975,6 +1981,15 @@ Load font from file into GPU memory ( VRAM ) --- +> font = RL_LoadFontFromImage( Image image, Color key, int firstChar ) + +Load font from Image ( XNA style ) + +- Failure return -1 +- Success return int + +--- + > success = RL_UnloadFont( Font font ) Unload Font from GPU memory ( VRAM ) @@ -2006,7 +2021,7 @@ Draw text using font and additional parameters --- -> success = RL_DrawTextPro( Font font, const char text, Vector2 position, Vector2 origin, float rotation, float fontSize, float spacing, Color tint ) +> success = RL_DrawTextPro( Font font, string text, Vector2 position, Vector2 origin, float rotation, float fontSize, float spacing, Color tint ) Draw text using Font and pro parameters ( rotation ) @@ -2015,6 +2030,19 @@ Draw text using Font and pro parameters ( rotation ) --- +## Text - Misc + +--- + +> size = RL_MeasureText( Font font, string text, float fontSize, float spacing ) + +Measure string size for Font + +- Failure return false +- Success return Vector2 + +--- + ## Models - Basic --- -- cgit v1.2.3