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

wrapping text with PF? question to Frank?


wrapping text with PF? question to Frank?

Postby Conan » Jun 24, 2004 @ 1:46pm

I wanted to improve my in-game help by using text which wraps within the area it's given. Is there a way to do this with PF's 0.7.0 font support?
Currently I use Thomas's fonts from PF plus for all other text & DGI fonts for the 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 fzammetti » Jun 24, 2004 @ 2:42pm

The VGA font support I added doesn't do wrapping as it's currently implemented. However, it's a pretty trivial thing to add. If you have to do some coding either way, it might be a good way to go because the fonts are by their nature fixed-width only, and therefore it's very easy to determine how much space a given string is going to take up. If Thomas' font functions do wrapping already, might as well stick with that (but I assume they don't or you wouldn't be asking :) ).
...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 Conan » Jun 24, 2004 @ 3:37pm

Thomas's font's don't but the GDI fonts do so I will stick with them. I only use them in the manual as they are quite slow. I get text wrap plus use of /r type features. I just wondered if the vga font did some of this as you appeared to have done it.

It's easiest to stick with what I have at this stage.
Game is now working fine & I'm getting lots of good feedback from beta testers.
What is Best in Life ?
User avatar
Conan
pm Member
 
Posts: 1309
Joined: Dec 24, 2001 @ 5:16am
Location: the Shades, Ankh-Morpock


Postby fzammetti » Jun 24, 2004 @ 3:48pm

Yep, that's a good way to go for that kind of thing.

Incidentally, you would think I had done this for my own game, but no :) My instruction pages is just a huge array in the code, and every 12 lines or so (I forget the actual number) is one page of instructions. If a page only uses 9 lines, then I literally have 3 empty elements in the array.

Just goes to show, even when you know you shouldn't do things a certain way, when you get it working one way, refactoring sometimes isn't a high priority :)
...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


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