Page 1 of 1

How to change font ing GDI?

PostPosted: Jun 29, 2004 @ 3:12pm
by _moadib

PostPosted: Jun 29, 2004 @ 5:05pm
by Dan East

PostPosted: Jun 29, 2004 @ 6:59pm
by Conan
Does the gothic font actually exist on the device?
If not you won;t see it.

PostPosted: Jun 30, 2004 @ 3:40pm
by _moadib
i add font with this command

AddFontResource("gothic_g.ttf");

and i try draw text on GAPIDraw surface with
DrawText() function

PostPosted: Jun 30, 2004 @ 3:53pm
by Johan
If you use CGapiSurface::DrawText you need to prerender the fonts you want to use as bitmapped fonts using the tool "FontMaker" included with the GapiDraw distribution (you will find it in the "misc" folder). Please check the GapiDraw documentation for details on how to use the font bitmap created with FontMaker, at:
http://www.develant.com/doc/gapidraw/30 ... -frame.htm

PostPosted: Jun 30, 2004 @ 5:20pm
by Kzinti

PostPosted: Jun 30, 2004 @ 7:08pm
by Johan

PostPosted: Jun 30, 2004 @ 7:46pm
by Kzinti

PostPosted: Jul 1, 2004 @ 4:53am
by _moadib
Thierry
Johan
I talk about GDI DrawText() function, not member of GAPIDraw surface...
And i didn't think that using font from bitmap is better... If i need very nice and unusual font i use bitmap, but now i need TTF font...

P.S. Johan About GapiDraw Surface::DrawText()
if i have problems with GapiDraw i wrote in GapiDraw group, do u think? ;)

PostPosted: Jul 1, 2004 @ 6:15am
by Conan
My bits n pieces relate to PF but should help:

GDI fonts with GAPI applications like PocketFrog (documented by me in my articles).
In the text strings you can use things like /n/r to format text to wrap. see
re: GDI fonts.

There's a little GDI font source here which may help:-

PostPosted: Jul 2, 2004 @ 4:46am
by _moadib
Conan
tnx