PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Font

I want to include my font, there is a tool the document refers to which is "FontMaker by MetalShard, inc".
the tool is no more exist, any one know a way to include my special font, or tool that convert from TTF to PNG.
The tool is available in the folder "misc\FontMaker" in the GapiDraw distribution.
iyad · 11 Aug 2004, 12:52 UTC — Font Cut
I see the FontMaker but when I tried to include an arabic font, it gets all the english values, and cut the rest of the font, which contains the arabic character!! Any one can help me.
By default FontMaker only outputs English characters. Open the source code to FontMaker (included) and change line 68 in fontmakerView.cpp:
Code:

CString thetext( _T( " !\"#$%&&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~_" ) );


Simply add whatever characters you want. Later, in CGapiBitmapFont::CreateFont, supply the same string as you used in FontMaker and it should work!
what I was trying to say, is the FontMaker it self, did not get all the characters of the font, it stops maybe after 80 characters!!. my font characters locate on the last, it starts with english characters and ends with my characters.. so it discards my characters
Hi again,

Just look at the source code for FontMaker and adjust the canvas size if all your characters cannot fit on the default size.

//Johan