TEXT_SIZE is a global style property

This commit is contained in:
Ray 2019-05-09 12:24:15 +02:00
parent 2ebb9ddde1
commit 1eae19f183

View File

@ -712,12 +712,6 @@ RAYGUIDEF void GuiFont(Font font)
{
guiFont = font;
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);
}
}