Font[] now assumes a default size of 10 points, so that you don't have to specify the font size when creating the Font object.

[GB.SDL2]
* NEW: Font[] now assumes a default size of 10 points, so that you don't have to specify the font size when creating the Font object.
This commit is contained in:
gambas 2019-01-09 16:52:10 +01:00
parent 802349aab4
commit 3c75cea518

View file

@ -320,7 +320,7 @@ BEGIN_METHOD(Font_get, GB_STRING font)
int val;
bool bold = FALSE;
bool italic = FALSE;
int size = 0;
int size = 10;
char *name = NULL;
for (elt = strtok(desc, ","); elt; elt = strtok(NULL, ","))