I've been recently having trouble getting fonts working in GD (3.50) and I'm not sure why.
I created a font using FontMaker. Nothing fancy, just a 16-point bold Arial font. The font file is attached.
Here's how I'm using it:
The pFont1->CreateFont call fails, but the return code is not one of the three specified in the docs. Specifically, the result is 2147942487.
HELP!! Thanks!
I created a font using FontMaker. Nothing fancy, just a 16-point bold Arial font. The font file is attached.
Here's how I'm using it:
- Code:
CGapiBitmapFont* pFont1;
pFont1 = new CGapiBitmapFont(m_pGapiDraw);
pFont1->CreateSurface(NULL, hInst, FNT_FONT1, TEXT("FONTS"));
pFont1->CreateFont(NULL, TRANSPARENT_COLOR, GDCREATEFONT_TRACKING, NULL);
The pFont1->CreateFont call fails, but the return code is not one of the three specified in the docs. Specifically, the result is 2147942487.
HELP!! Thanks!
Attachments:
