Page 1 of 2

Font support ?

PostPosted: Oct 16, 2002 @ 11:00am
by Conan
I know that earlier versions had a built in font. While I have been using GDI fonts these are just too slow for use in the main game loop.

I suggest that interested parties discuss the requirement with a view to either sharing the work to implement an add-on or even better having font support included within PocketFrog.

In PocketGL the simple letters as a bitmap approach is taken one step further by including character width information. This gives a slightly better look than a simple fixed font though is still restricted in size. While it is possible to code access to TTF font data this would be much more work & would be slower again.

I will look at the method used in GapiDraw to see if it's easy enough to follow.

What does the FP community think ?

PostPosted: Oct 16, 2002 @ 12:55pm
by BurningSheep
I still use the Bitmap Builder by LMNOpc, it has some options to save font width as well.

http://www.lmnopc.com/bitmapfontbuilder/

But what I would like to see is a font class where you give the name of the windows font when you create the class. And it will render all chars to a bitmap as well as saving the width of every char at creation.

Quite simple to implement in PF really... but never got around to actually do it.

thanks for the link

PostPosted: Oct 16, 2002 @ 1:37pm
by Conan
I am going to have a good look at this font builder. (It may be the same or similar to the PocketGL font)

Do you already have a working function to utilise these fonts? If so is it clean enough to share?
If not I will write my own at the weekend.

I agree that supporting TTF would be the best approach but it's more work than I can handle at the moment.

PostPosted: Oct 16, 2002 @ 1:55pm
by BurningSheep

font class

PostPosted: Oct 16, 2002 @ 2:15pm
by Conan

PostPosted: Oct 16, 2002 @ 7:33pm
by Kzinti

PostPosted: Nov 2, 2002 @ 4:02am
by BurningSheep

PostPosted: Nov 5, 2002 @ 9:09pm
by draklava

PostPosted: Nov 5, 2002 @ 9:13pm
by Johan

PostPosted: Nov 5, 2002 @ 10:03pm
by Kzinti

PostPosted: Nov 5, 2002 @ 11:17pm
by Johan

PostPosted: Nov 6, 2002 @ 12:36am
by BurningSheep

PostPosted: Nov 8, 2002 @ 7:02pm
by BurningSheep

PostPosted: Jan 21, 2003 @ 5:43am
by LYRIXX

PostPosted: Jan 22, 2003 @ 5:23am
by jack