Addressed issue #66

NOTE: GetDirectoryPath() has also been updated in raylib, latest master branch version must be used!
This commit is contained in:
Ray 2020-01-26 12:55:14 +01:00
parent aa28f6c759
commit 4fb2b73a15

View File

@ -804,6 +804,11 @@ void GuiSetFont(Font font)
{
if (font.texture.id > 0)
{
// NOTE: If we try to setup a font but default style has not been
// lazily loaded before, it will be overwritten, so we need to force
// default style loading first
if (!guiStyleLoaded) GuiLoadStyleDefault();
guiFont = font;
GuiSetStyle(DEFAULT, TEXT_SIZE, font.baseSize);
}