mirror of
https://github.com/raysan5/raygui.git
synced 2026-02-01 03:39:18 -05:00
Addressed issue #66
NOTE: GetDirectoryPath() has also been updated in raylib, latest master branch version must be used!
This commit is contained in:
@ -804,6 +804,11 @@ void GuiSetFont(Font font)
|
|||||||
{
|
{
|
||||||
if (font.texture.id > 0)
|
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;
|
guiFont = font;
|
||||||
GuiSetStyle(DEFAULT, TEXT_SIZE, font.baseSize);
|
GuiSetStyle(DEFAULT, TEXT_SIZE, font.baseSize);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user