Hi,
Is there a way to display text with different sizes?
I've read a previous post suggesting to blit on a temp surface and then stretch it, is there an easier way?
Thanks in advance.
Vincent.
Yes, you can create new text fonts in various sizes.. Much faster!
Thanks Johan for your answer,
I gave it a try it worked and it was much more easier than I thought.
The fontMaker is really great!! (in the GapiDraw\misc\MetalShard FontMaker\Release directory).
I used it to create a gif I called bigfont.gif (how clever!!).
I declared a font called MyFont (how inspired!!!) in my .h:
CGapiBitmapFont MyFont;
And then I added the following code in my .cpp file:
GDFONTFX GDFont;
GDFont.lTracking=1;
MyFont.CreateSurface(GDSURFACE_SYSTEMMEMORY,"bigfont.gif");
MyFont.CreateFont(NULL,RGB(255,0,255) , GDCREATEFONT_TRACKING , &GDFont;);
And then I can use it with drawText:
pBackBuffer->DrawText(10, 10, TEXT("TEST"), &MyFont;, GDDRAWTEXT_CENTER , NULL , 0 , NULL);
Many thanks.
Vincent.