From 8719c30d1e0231355810a7f6d61e76ca8b8393e2 Mon Sep 17 00:00:00 2001 From: JupiterRider <60042618+JupiterRider@users.noreply.github.com> Date: Fri, 6 Dec 2024 20:33:42 +0100 Subject: [PATCH] LoadFontEx XML comment updated --- Raylib-cs/interop/Raylib.cs | 4 ++-- Raylib-cs/types/Raylib.Utils.cs | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Raylib-cs/interop/Raylib.cs b/Raylib-cs/interop/Raylib.cs index 1ae996a..fa1eb41 100644 --- a/Raylib-cs/interop/Raylib.cs +++ b/Raylib-cs/interop/Raylib.cs @@ -1966,8 +1966,8 @@ public static unsafe partial class Raylib public static extern Font LoadFont(sbyte* fileName); /// - /// Load font from file with extended parameters, use NULL for fontChars and 0 for glyphCount to load - /// the default character set + /// Load font from file with extended parameters, use NULL for codepoints and 0 for codepointCount to load + /// the default character set, font size is provided in pixels height /// [DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern Font LoadFontEx(sbyte* fileName, int fontSize, int* codepoints, int codepointCount); diff --git a/Raylib-cs/types/Raylib.Utils.cs b/Raylib-cs/types/Raylib.Utils.cs index 04cf58c..7b87c9c 100644 --- a/Raylib-cs/types/Raylib.Utils.cs +++ b/Raylib-cs/types/Raylib.Utils.cs @@ -935,7 +935,10 @@ public static unsafe partial class Raylib return LoadFont(str1.AsPointer()); } - /// Load font from file with extended parameters + /// + /// Load font from file with extended parameters, use NULL for codepoints and 0 for codepointCount to load + /// the default character set, font size is provided in pixels height + /// public static Font LoadFontEx(string fileName, int fontSize, int[] codepoints, int codepointCount) { using var str1 = fileName.ToAnsiBuffer();