Added sample styles -WIP-

Note those styles are still under development... they will change...
This commit is contained in:
raysan5
2019-08-21 12:50:57 +02:00
parent 737e866ec2
commit 93a44f1214
83 changed files with 6974 additions and 6 deletions

View File

@ -3952,12 +3952,8 @@ RAYGUIDEF void GuiLoadStyle(const char *fileName)
Font font = LoadFontEx(FormatText("%s/%s", GetDirectoryPath(fileName), fontFileName), fontSize, NULL, 0);
if ((font.texture.id > 0) && (font.charsCount > 0))
{
GuiFont(font);
GuiSetStyle(DEFAULT, TEXT_SIZE, fontSize);
GuiSetStyle(DEFAULT, TEXT_SPACING, fontSpacing);
}
if ((font.texture.id > 0) && (font.charsCount > 0)) GuiFont(font);
} break;
default: break;
}