News:

PlayBASIC2DLL V0.99 Revision I Commercial Edition released! - Convert PlayBASIC programs to super fast Machine Code. 

Main Menu

Can't get FontChrWidth to work in V1.63m...going insane...

Started by balaporte, August 18, 2007, 04:09:12 PM

Previous topic - Next topic

balaporte

Is FontChrWidth working in PB V1.63m? I can't get it to work at all, and when running the sample code in the docs, it doesn't set the widths of the space or "<" characters. I can create a new bitmap font, load images into the font, set the font mask color, and display the font using the text commands - but I can't change the font character widths. I've read through the docs and understand that the command is only changing the spacing of the characters when drawn.

I'm attaching a screen cap of the sample code output.

kevin


kevin


I don't think it's ever worked correctly prior to  PB V1.69 / V1.70,    but it's now fixed in PB1.63n

kevin

 Try PB1.63n Beta (login required)

balaporte

Excellent, thanks. Also happy to know that it just wasn't me making some silly error. I'm downloading the beta right now and will test it out. I had written code using images/sprites to basically act like bitmap fonts, but prefer to use the actual bitmap commands.  This is for a game I will (hopefully) be announcing/posting shortly - nothing huge, and I still have quite a bit to work out, but I think it will be more likely that I finish it if I post about it.

kevin


It seems to work here,  so I'll assume it's working for you also ?

Good to hear about another 'secret' project :)

balaporte

Just tested it out and it works fine. Thanks for fixing this, much simpler than what I came up with in its place.

Yes, another secret project... I just hate to announce something unless I feel I'm going to finish it, or at least get it to a stopping point. This one is actually a word game, which is different from anything I've tried in the past. I do have a working version which I've invited friends and relatives to play, but it's pretty plain and loses some speed do to reliance on using regular font commands. What's nice is that the game itself is pretty simple, so I can concentrate on writing everything to support it - art, fx, sound, game options, save files, all that. Actually, I think I'll go start the thread right now...