PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Problem with Bitmap Font on GapiDraw 2.x

Did anyone experience the Bitmap Font is not displaying correct in DrawText function? Any workaround on this problem? These font were created using MetalShard Font Maker. It works fine in GD1.04. I'm waiting for 2.02 hoping this is solved. Thanks.
I'm using DrawText extensively in Warlords II and I've not seen anything out of the ordinary. What kind of problems are you having?
Hi GR Moore,

The fonts Im using in BOTG using gd1.04 works well. However, when imported on gd2.x it is not diplaying the correct text. Any idea?

Can you paste a code for displaying fonts in gd2.x? Is it different implementation? Thanks.
Here's a code snippet for DrawText:

Code:

HRESULT hr = backbuffer.DrawText(xloc, yloc, tcstr, &myfont;, GDDRAWTEXT_CENTER, 0, NULL, NULL); if(hr != GD_OK) return hr;


This draws the UNICODE string, tcstr, centered at xloc,yloc using the font, myfont. Note the addition of the dwBltFastFlags (set to 0) in this method.
Thanks. Will try that and update you when it works.
GapiDraw 2.02 contains a rewritten CreateFont operation. Unfortunately I cannot release it yet, but it should be due out in a couple of weeks.