3571
Old Bugs (1.x/2.x) / Re: Get height/width of default font throws errors during runtime.
« on: December 11, 2011, 03:53:11 pm »
Put only the "set font to"-block in the "if Font has value"-block, all the other blocks wouldn't be inside the if block.
Not setting the font is the same as using the default font.
So if the Font attribute is not null, you set the font with the "set font to"-block.
But if the Font attribute is null, you don't set the font to anything (i.e. use the default font).
Then you do the drawing, and you can use "get height/get width"-blocks. (at least it works for me)
Not setting the font is the same as using the default font.
So if the Font attribute is not null, you set the font with the "set font to"-block.
But if the Font attribute is null, you don't set the font to anything (i.e. use the default font).
Then you do the drawing, and you can use "get height/get width"-blocks. (at least it works for me)