2
0
mirror of https://github.com/raylib-cs/raylib-cs synced 2025-06-30 19:03:42 -04:00

Review font functions

This commit is contained in:
2022-02-15 19:59:26 +00:00
parent f5e3c38887
commit 1db5428786
2 changed files with 10 additions and 7 deletions

View File

@ -590,10 +590,13 @@ namespace Raylib_cs
}
/// <summary>Load font from file with extended parameters</summary>
public static Font LoadFontEx(string fileName, int fontSize, int[] fontChars, int charsCount)
public static Font LoadFontEx(string fileName, int fontSize, int[] fontChars, int glyphCount)
{
using var str1 = fileName.ToUTF8Buffer();
return LoadFontEx(str1.AsPointer(), fontSize, fontChars, charsCount);
fixed (int* p = fontChars)
{
return LoadFontEx(str1.AsPointer(), fontSize, p, glyphCount);
}
}
/// <summary>Upload vertex data into GPU and provided VAO/VBO ids</summary>