rename Font into RLFont

prevent conflict with Xlib.h
This commit is contained in:
SergeyMC9730 2024-03-07 22:51:20 +08:00
commit 19cd976000

View file

@ -690,8 +690,8 @@ return {
}
},
{
name = "Font",
description = "Font, font texture and GlyphInfo array data",
name = "RLFont",
description = "RLFont, font texture and GlyphInfo array data",
fields = {
{
type = "int",
@ -2818,7 +2818,7 @@ return {
},
{
name = "FontType",
description = "Font type, defines generation method",
description = "RLFont type, defines generation method",
values = {
{
name = "FONT_DEFAULT",
@ -5490,7 +5490,7 @@ return {
description = "Create an image from text (custom sprite font)",
returnType = "Image",
params = {
{type = "Font", name = "font"},
{type = "RLFont", name = "font"},
{type = "const char *", name = "text"},
{type = "float", name = "fontSize"},
{type = "float", name = "spacing"},
@ -5955,7 +5955,7 @@ return {
returnType = "void",
params = {
{type = "Image *", name = "dst"},
{type = "Font", name = "font"},
{type = "RLFont", name = "font"},
{type = "const char *", name = "text"},
{type = "Vector2", name = "position"},
{type = "float", name = "fontSize"},
@ -6280,13 +6280,13 @@ return {
},
{
name = "GetFontDefault",
description = "Get the default Font",
returnType = "Font"
description = "Get the default RLFont",
returnType = "RLFont"
},
{
name = "LoadFont",
description = "Load font from file into GPU memory (VRAM)",
returnType = "Font",
returnType = "RLFont",
params = {
{type = "const char *", name = "fileName"}
}
@ -6294,7 +6294,7 @@ return {
{
name = "LoadFontEx",
description = "Load font from file with extended parameters, use NULL for codepoints and 0 for codepointCount to load the default character setFont",
returnType = "Font",
returnType = "RLFont",
params = {
{type = "const char *", name = "fileName"},
{type = "int", name = "fontSize"},
@ -6305,7 +6305,7 @@ return {
{
name = "LoadFontFromImage",
description = "Load font from Image (XNA style)",
returnType = "Font",
returnType = "RLFont",
params = {
{type = "Image", name = "image"},
{type = "Color", name = "key"},
@ -6315,7 +6315,7 @@ return {
{
name = "LoadFontFromMemory",
description = "Load font from memory buffer, fileType refers to extension: i.e. '.ttf'",
returnType = "Font",
returnType = "RLFont",
params = {
{type = "const char *", name = "fileType"},
{type = "const unsigned char *", name = "fileData"},
@ -6330,7 +6330,7 @@ return {
description = "Check if a font is ready",
returnType = "bool",
params = {
{type = "Font", name = "font"}
{type = "RLFont", name = "font"}
}
},
{
@ -6373,7 +6373,7 @@ return {
description = "Unload font from GPU memory (VRAM)",
returnType = "void",
params = {
{type = "Font", name = "font"}
{type = "RLFont", name = "font"}
}
},
{
@ -6381,7 +6381,7 @@ return {
description = "Export font as code file, returns true on success",
returnType = "bool",
params = {
{type = "Font", name = "font"},
{type = "RLFont", name = "font"},
{type = "const char *", name = "fileName"}
}
},
@ -6411,7 +6411,7 @@ return {
description = "Draw text using font and additional parameters",
returnType = "void",
params = {
{type = "Font", name = "font"},
{type = "RLFont", name = "font"},
{type = "const char *", name = "text"},
{type = "Vector2", name = "position"},
{type = "float", name = "fontSize"},
@ -6421,10 +6421,10 @@ return {
},
{
name = "DrawTextPro",
description = "Draw text using Font and pro parameters (rotation)",
description = "Draw text using RLFont and pro parameters (rotation)",
returnType = "void",
params = {
{type = "Font", name = "font"},
{type = "RLFont", name = "font"},
{type = "const char *", name = "text"},
{type = "Vector2", name = "position"},
{type = "Vector2", name = "origin"},
@ -6439,7 +6439,7 @@ return {
description = "Draw one character (codepoint)",
returnType = "void",
params = {
{type = "Font", name = "font"},
{type = "RLFont", name = "font"},
{type = "int", name = "codepoint"},
{type = "Vector2", name = "position"},
{type = "float", name = "fontSize"},
@ -6451,7 +6451,7 @@ return {
description = "Draw multiple character (codepoint)",
returnType = "void",
params = {
{type = "Font", name = "font"},
{type = "RLFont", name = "font"},
{type = "const int *", name = "codepoints"},
{type = "int", name = "codepointCount"},
{type = "Vector2", name = "position"},
@ -6479,10 +6479,10 @@ return {
},
{
name = "MeasureTextEx",
description = "Measure string size for Font",
description = "Measure string size for RLFont",
returnType = "Vector2",
params = {
{type = "Font", name = "font"},
{type = "RLFont", name = "font"},
{type = "const char *", name = "text"},
{type = "float", name = "fontSize"},
{type = "float", name = "spacing"}
@ -6493,7 +6493,7 @@ return {
description = "Get glyph index position in font for a codepoint (unicode character), fallback to '?' if not found",
returnType = "int",
params = {
{type = "Font", name = "font"},
{type = "RLFont", name = "font"},
{type = "int", name = "codepoint"}
}
},
@ -6502,7 +6502,7 @@ return {
description = "Get glyph font info data for a codepoint (unicode character), fallback to '?' if not found",
returnType = "GlyphInfo",
params = {
{type = "Font", name = "font"},
{type = "RLFont", name = "font"},
{type = "int", name = "codepoint"}
}
},
@ -6511,7 +6511,7 @@ return {
description = "Get glyph rectangle in font atlas for a codepoint (unicode character), fallback to '?' if not found",
returnType = "Rectangle",
params = {
{type = "Font", name = "font"},
{type = "RLFont", name = "font"},
{type = "int", name = "codepoint"}
}
},