Skip to content

Commit 0a92c86

Browse files
committed
Reverted const codepoints to avoid warnings
1 parent 12ce72c commit 0a92c86

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/raylib.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1466,9 +1466,9 @@ RLAPI int GetPixelDataSize(int width, int height, int format); // G
14661466
// Font loading/unloading functions
14671467
RLAPI Font GetFontDefault(void); // Get the default Font
14681468
RLAPI Font LoadFont(const char *fileName); // Load font from file into GPU memory (VRAM)
1469-
RLAPI Font LoadFontEx(const char *fileName, int fontSize, const int *codepoints, int codepointCount); // 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
1469+
RLAPI Font LoadFontEx(const char *fileName, int fontSize, int *codepoints, int codepointCount); // 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
14701470
RLAPI Font LoadFontFromImage(Image image, Color key, int firstChar); // Load font from Image (XNA style)
1471-
RLAPI Font LoadFontFromMemory(const char *fileType, const unsigned char *fileData, int dataSize, int fontSize, const int *codepoints, int codepointCount); // Load font from memory buffer, fileType refers to extension: i.e. '.ttf'
1471+
RLAPI Font LoadFontFromMemory(const char *fileType, const unsigned char *fileData, int dataSize, int fontSize, int *codepoints, int codepointCount); // Load font from memory buffer, fileType refers to extension: i.e. '.ttf'
14721472
RLAPI bool IsFontValid(Font font); // Check if a font is valid (font data loaded, WARNING: GPU texture not checked)
14731473
RLAPI GlyphInfo *LoadFontData(const unsigned char *fileData, int dataSize, int fontSize, int *codepoints, int codepointCount, int type); // Load font data for further use
14741474
RLAPI Image GenImageFontAtlas(const GlyphInfo *glyphs, Rectangle **glyphRecs, int glyphCount, int fontSize, int padding, int packMethod); // Generate image font atlas using chars info

src/rtext.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ Font LoadFont(const char *fileName)
404404
// Load Font from TTF or BDF font file with generation parameters
405405
// NOTE: You can pass an array with desired characters, those characters should be available in the font
406406
// if array is NULL, default char set is selected 32..126
407-
Font LoadFontEx(const char *fileName, int fontSize, const int *codepoints, int codepointCount)
407+
Font LoadFontEx(const char *fileName, int fontSize, int *codepoints, int codepointCount)
408408
{
409409
Font font = { 0 };
410410

@@ -549,7 +549,7 @@ Font LoadFontFromImage(Image image, Color key, int firstChar)
549549
}
550550

551551
// Load font from memory buffer, fileType refers to extension: i.e. ".ttf"
552-
Font LoadFontFromMemory(const char *fileType, const unsigned char *fileData, int dataSize, int fontSize, const int *codepoints, int codepointCount)
552+
Font LoadFontFromMemory(const char *fileType, const unsigned char *fileData, int dataSize, int fontSize, int *codepoints, int codepointCount)
553553
{
554554
Font font = { 0 };
555555

0 commit comments

Comments
 (0)