mirror of
https://github.com/raysan5/raygui.git
synced 2025-12-25 10:22:33 -05:00
TEXT_SIZE is a global style property
This commit is contained in:
@ -712,12 +712,6 @@ RAYGUIDEF void GuiFont(Font font)
|
|||||||
{
|
{
|
||||||
guiFont = font;
|
guiFont = font;
|
||||||
GuiSetStyle(DEFAULT, TEXT_SIZE, font.baseSize);
|
GuiSetStyle(DEFAULT, TEXT_SIZE, font.baseSize);
|
||||||
|
|
||||||
// Populate all controls with new font size
|
|
||||||
for (int i = 1; i < NUM_CONTROLS; i++) GuiSetStyle(i, TEXT_SIZE, GuiGetStyle(DEFAULT, TEXT_SIZE));
|
|
||||||
|
|
||||||
// NOTE: Loaded font spacing must be set manually
|
|
||||||
//GuiSetStyle(DEFAULT, TEXT_SPACING, 1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user