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

How to change font ing GDI?


How to change font ing GDI?

Postby _moadib » Jun 29, 2004 @ 3:12pm

_moadib
pm Member
 
Posts: 20
Joined: Mar 20, 2004 @ 8:14am


Postby Dan East » Jun 29, 2004 @ 5:05pm

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby Conan » Jun 29, 2004 @ 6:59pm

Does the gothic font actually exist on the device?
If not you won;t see it.
What is Best in Life ?
User avatar
Conan
pm Member
 
Posts: 1309
Joined: Dec 24, 2001 @ 5:16am
Location: the Shades, Ankh-Morpock


Postby _moadib » Jun 30, 2004 @ 3:40pm

i add font with this command

AddFontResource("gothic_g.ttf");

and i try draw text on GAPIDraw surface with
DrawText() function
_moadib
pm Member
 
Posts: 20
Joined: Mar 20, 2004 @ 8:14am


Postby Johan » Jun 30, 2004 @ 3:53pm

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
Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby Kzinti » Jun 30, 2004 @ 5:20pm

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby Johan » Jun 30, 2004 @ 7:08pm

Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby Kzinti » Jun 30, 2004 @ 7:46pm

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby _moadib » Jul 1, 2004 @ 4:53am

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? ;)
_moadib
pm Member
 
Posts: 20
Joined: Mar 20, 2004 @ 8:14am


Postby Conan » Jul 1, 2004 @ 6:15am

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:-
What is Best in Life ?
User avatar
Conan
pm Member
 
Posts: 1309
Joined: Dec 24, 2001 @ 5:16am
Location: the Shades, Ankh-Morpock


Postby _moadib » Jul 2, 2004 @ 4:46am

Conan
tnx
_moadib
pm Member
 
Posts: 20
Joined: Mar 20, 2004 @ 8:14am


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

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