@@ -50,8 +50,8 @@ class Font : public ::Font {
5050 *
5151 * @see ::LoadFontEx
5252 */
53- Font (const std::string& fileName, int fontSize, int * fontChars = 0 , int charCount = 0 ) {
54- Load (fileName, fontSize, fontChars, charCount );
53+ Font (const std::string& fileName, int fontSize, const int * codepoints = nullptr , int codepointCount = 0 ) {
54+ Load (fileName, fontSize, codepoints, codepointCount );
5555 }
5656
5757 /* *
@@ -77,9 +77,9 @@ class Font : public ::Font {
7777 const unsigned char * fileData,
7878 int dataSize,
7979 int fontSize,
80- int * fontChars ,
81- int charsCount ) {
82- Load (fileType, fileData, dataSize, fontSize, fontChars, charsCount );
80+ const int * codepoints ,
81+ int codepointCount ) {
82+ Load (fileType, fileData, dataSize, fontSize, codepoints, codepointCount );
8383 }
8484
8585 Font (const Font&) = delete ;
@@ -173,8 +173,8 @@ class Font : public ::Font {
173173 *
174174 * @see ::LoadFontEx()
175175 */
176- void Load (const std::string& fileName, int fontSize, int * fontChars , int charCount ) {
177- set (::LoadFontEx (fileName.c_str (), fontSize, fontChars, charCount ));
176+ void Load (const std::string& fileName, int fontSize, const int * codepoints = nullptr , int codepointCount = 0 ) {
177+ set (::LoadFontEx (fileName.c_str (), fontSize, codepoints, codepointCount ));
178178 if (!IsValid ()) {
179179 throw RaylibException (" Failed to load Font with from file with font size: " + fileName);
180180 }
@@ -192,9 +192,9 @@ class Font : public ::Font {
192192 const unsigned char * fileData,
193193 int dataSize,
194194 int fontSize,
195- int * fontChars ,
196- int charsCount ) {
197- set (::LoadFontFromMemory (fileType.c_str (), fileData, dataSize, fontSize, fontChars, charsCount ));
195+ const int * codepoints ,
196+ int codepointCount ) {
197+ set (::LoadFontFromMemory (fileType.c_str (), fileData, dataSize, fontSize, codepoints, codepointCount ));
198198 if (!IsValid ()) {
199199 throw RaylibException (" Failed to load Font " + fileType + " with from file data" );
200200 }
0 commit comments