PocketMatrix forums

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

How to create variable width fnt file?

I obtained a tool to convert ttf font to fnt font. However, either the spacing of the character is too wide or some part of the charactor is missing.
I believe it is due to fixed width fnt that I have created.

Is that a way/tool to create a VARIABLE width fnt file?
I think it would take a lot to make the DrawVGAText use variable width.

A long time ago, somebody wrote a good font class that used some sort of key'd bitmap for the character widths. The post is here:
http://www.pocketmatrix.com/forums/view ... =fontclass

Unfortunately, the link to the file on omnytex doesn't work anymore... Maybe fzammetti is looking at this. I suppose I could post it here, though.
Thanks for the hint. I got the fontclass somewhere else. It solved the problem. :lol:
I haven't looked... is the old PocketFrog Developer's Corner content not up on Dronship? I did send it to Thierry some time ago, I thought it was going to go up.

Looks like fisherman dug up the other class anyway, so cool.

And yes, fast_rx is correct, making the DrawVGAText variable-width would (a) be a lot of work and (b) make it no longer a VGA font drawing function. VGA fonts were always non-proportional, hence the ease of using the and implementing that function. That of course makes it rather limited (but maybe more flexible in some unusual ways), so certainly it's not going to suffice for many people in many cases.
Well yes, if anyone have the same problem....
Just goto www.yahoo.com and search with fontclass.zip.
You will be able to find it in the top 5 search result.
(I don't want to post the code up, since it is not my code)

But the code is kind of old...need to renew some function calls.

thanks for the hint.
There are 2 or more font classes floating around...

One I saw is by a Robert Schaap which uses the system fonts.

The other is a bitmap based one by Jason Chong - the one I was talking about. It is compatabile with something called MetalShard Fontmaker, but you can make your own in any graphics package.

I'll attach it since I didn't see it.
Attachments:
FontClass_jcvw75.zip (6 KB)