Page 1 of 1
CGapiFont::CreateFont reporting back Invalid Bitmap in 1.02

Posted:
Jun 12, 2002 @ 6:26am
by Hosed

Posted:
Jun 12, 2002 @ 6:36am
by Hosed

Posted:
Jun 12, 2002 @ 8:24am
by Johan
Hi,
Yep.. I haven't been able to update the entire doc since my internet connection went down due to a thunderstorm last night.
GapiDraw checks if the filename begins with "\" or "x:\" and if so uses absolute filenames. Otherwise it will try to get the app path and use relative paths.
/Johan

Posted:
Jun 12, 2002 @ 8:26am
by Hosed
How about the issue with the create font? What am I doing wrong for creating non-simple fonts?

Posted:
Jun 12, 2002 @ 9:36am
by Johan
Hi,
You probably forgot to set a colorkey. I noticed that I missed that step in the documentation. I've updated the docs for both CBitmapFont::CreateFont and CGapiSurface::CreateSurface.
Use the following steps:
CreateSurface
SetColorKey
CreateFont
DrawText
/Johan

Posted:
Jun 12, 2002 @ 7:27pm
by Hosed
Ahh, yes. Definately didn't do that part. Wasn't aware it was needed as the previous version didn't care.