Page 1 of 1

Bug with SimpleFonts

PostPosted: Aug 2, 2002 @ 9:49am
by Hosed
There seems to be a minor bug with Simple Fonts and the surface height. It's off by 1 if you try to draw the Simple Font onto another surface that's the size of the height.

IE
SimpleFont Surface ---> GapiSurface of size (SimpleFont Width, SimpleFont Height) = invalid rect when calling DrawText because height needs to be + 1 on GapiSurface being drawn on.

PostPosted: Aug 2, 2002 @ 5:09pm
by Johan

PostPosted: Aug 2, 2002 @ 9:19pm
by Hosed
that would be correct and yup, it's with 1.04

PostPosted: Aug 2, 2002 @ 9:58pm
by Hosed
I found the problem. Regular Bitmap fonts in a previous version of GapiDraw reported the size with the additional pixel for the line so I was subtracting 1 from my surface earlier in the program.

PostPosted: Aug 3, 2002 @ 4:34am
by Johan

PostPosted: Aug 3, 2002 @ 12:31pm
by Hosed