summaryrefslogtreecommitdiffhomepage
path: root/src/text.c
diff options
context:
space:
mode:
authorRay <[email protected]>2021-03-02 01:07:08 +0100
committerRay <[email protected]>2021-03-02 01:07:08 +0100
commitbcc4418ff05fa0e06c1a539bcbbc3a5c62b3751a (patch)
tree46faff440f4c6d35cc33b1bc8084aa17f71ca9fe /src/text.c
parent2ff5fa73e9a4745aa1cc37a4e5be05c841778200 (diff)
downloadraylib-bcc4418ff05fa0e06c1a539bcbbc3a5c62b3751a.tar.gz
raylib-bcc4418ff05fa0e06c1a539bcbbc3a5c62b3751a.zip
REVIEWED: GetFileExtension() to include the dot #1523
Diffstat (limited to 'src/text.c')
-rw-r--r--src/text.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/text.c b/src/text.c
index 5c10dd43..e0b0b324 100644
--- a/src/text.c
+++ b/src/text.c
@@ -479,7 +479,7 @@ Font LoadFontFromImage(Image image, Color key, int firstChar)
return font;
}
-// Load font from memory buffer, fileType refers to extension: i.e. "ttf"
+// Load font from memory buffer, fileType refers to extension: i.e. ".ttf"
Font LoadFontFromMemory(const char *fileType, const unsigned char *fileData, int dataSize, int fontSize, int *fontChars, int charsCount)
{
Font font = { 0 };
@@ -488,8 +488,8 @@ Font LoadFontFromMemory(const char *fileType, const unsigned char *fileData, int
strcpy(fileExtLower, TextToLower(fileType));
#if defined(SUPPORT_FILEFORMAT_TTF)
- if (TextIsEqual(fileExtLower, "ttf") ||
- TextIsEqual(fileExtLower, "otf"))
+ if (TextIsEqual(fileExtLower, ".ttf") ||
+ TextIsEqual(fileExtLower, ".otf"))
{
font.baseSize = fontSize;
font.charsCount = (charsCount > 0)? charsCount : 95;