This site is no longer active and is available for archival purposes only. Registration and login is disabled.

CGapiFont::CreateFont reporting back Invalid Bitmap in 1.02


CGapiFont::CreateFont reporting back Invalid Bitmap in 1.02

Postby Hosed » Jun 12, 2002 @ 6:26am

User avatar
Hosed
pm Member
 
Posts: 249
Joined: Jan 3, 2002 @ 2:51am
Location: Montana, USA


Postby Hosed » Jun 12, 2002 @ 6:36am

User avatar
Hosed
pm Member
 
Posts: 249
Joined: Jan 3, 2002 @ 2:51am
Location: Montana, USA


Postby Johan » Jun 12, 2002 @ 8:24am

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
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby Hosed » Jun 12, 2002 @ 8:26am

How about the issue with the create font? What am I doing wrong for creating non-simple fonts?
User avatar
Hosed
pm Member
 
Posts: 249
Joined: Jan 3, 2002 @ 2:51am
Location: Montana, USA


Postby Johan » Jun 12, 2002 @ 9:36am

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
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby Hosed » Jun 12, 2002 @ 7:27pm

Ahh, yes. Definately didn't do that part. Wasn't aware it was needed as the previous version didn't care.
User avatar
Hosed
pm Member
 
Posts: 249
Joined: Jan 3, 2002 @ 2:51am
Location: Montana, USA


Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron