From 7ffcf2cb3adfaef6e6374b2ea36ee8d77950deb3 Mon Sep 17 00:00:00 2001 From: Milan Nikolic Date: Wed, 26 May 2021 12:22:18 +0200 Subject: [PATCH] Fix ttf example --- examples/text/ttf_loading/main.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/text/ttf_loading/main.go b/examples/text/ttf_loading/main.go index b634761..57e7eaa 100644 --- a/examples/text/ttf_loading/main.go +++ b/examples/text/ttf_loading/main.go @@ -16,10 +16,8 @@ func main() { // NOTE: Textures/Fonts MUST be loaded after Window initialization (OpenGL context is required) - fontChars := int32(0) - // TTF Font loading with custom generation parameters - font := rl.LoadFontEx("fonts/KAISG.ttf", 96, &fontChars, 0) + font := rl.LoadFontEx("fonts/KAISG.ttf", 96, nil, 0) // Generate mipmap levels to use trilinear filtering // NOTE: On 2D drawing it won't be noticeable, it looks like FILTER_BILINEAR @@ -69,7 +67,7 @@ func main() { if count == 1 { // Only support one ttf file dropped rl.UnloadFont(font) - font = rl.LoadFontEx(droppedFiles[0], fontSize, &fontChars, 0) + font = rl.LoadFontEx(droppedFiles[0], fontSize, nil, 0) rl.ClearDroppedFiles() } }