Register
Site Login
Site Search
Forums
Advertisement
Welcome to PocketMatrix. PocketMatrix is dedicated to providing the best online community for mobile device developers and enthusiests. What's new?

How to create variable width fnt file?


How to create variable width fnt file?

Postby fisherman » Oct 12, 2004 @ 3:10am

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?
fisherman
pm Member
 
Posts: 6
Joined: Oct 12, 2004 @ 3:05am


Postby fast_rx » Oct 12, 2004 @ 3:55am

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.
User avatar
fast_rx
pm Member
 
Posts: 660
Joined: Jun 10, 2003 @ 4:24pm


Postby Guest » Oct 12, 2004 @ 7:16am

Thanks for the hint. I got the fontclass somewhere else. It solved the problem. :lol:
Guest
 


Postby fzammetti » Oct 12, 2004 @ 6:01pm

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.
...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby fisherman » Oct 13, 2004 @ 2:51am

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.
fisherman
pm Member
 
Posts: 6
Joined: Oct 12, 2004 @ 3:05am


Postby fast_rx » Oct 13, 2004 @ 4:56am

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
Font class by Jason Chong aka jcvw75
(5.41 KiB) Downloaded 159 times
User avatar
fast_rx
pm Member
 
Posts: 660
Joined: Jun 10, 2003 @ 4:24pm


Return to PocketFrog & PocketHAL


Sort


Forum Description

SDKs for fast and robust device-independent access to Pocket PC display hardware.

Moderators:

sponge, Kzinti

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