The Daily Click ::. Forums ::. Klik Coding Help ::. Text Blitter Help!
 

Post Reply  Post Oekaki 
 

Posted By Message

Teerp32



Registered
  09/06/2004
Points
  3
29th March, 2008 at 05:44:58 -

Not sure if this is the right place to post my question, but my question didn't seem to fit into any other board, so ...

I need some help with Text Blitter! It's really amazing, but I'm having some trouble. I'm making a Paper Mario styled game and I have the Paper Mario text font. I go to text blitter obeject properties and then I generate the Paper Mario text from the font and it works just fine. But there's some strange gaps between letters when they are typed. Like, for example if I want the text blitter object to say :

"Hi Mario"

it will look like :

"H i Mar io"

I believe it does this because in the image there's a gap in front of the 'i' and it counts that as part of the text. How do I get rid of these gaps? Can someone tell me where the grid is or something?

THANKS!



 
n/a

Joe.H

Evil Faker

Registered
  19/08/2002
Points
  3305
29th March, 2008 at 07:39:09 -

You can edit the actual image the text blitter generates.

Try moving the letters around so that they are 1-3 pixels away from the left border of each characters square.

 
My signature is never too big!!!

viva/volt

Awesome Sauce

Registered
  26/08/2006
Points
  1694

Game of the Week WinnerSilverNova MemberKlikCast StarVIP Member
29th March, 2008 at 07:42:29 -

That will work, but if you want true variable width fonts you need to do some mucking around with callback and an array of widths for each character... The Podunkian wrote a nice tutorial on it once but I think it went down after TK got a makeover.

 
Image
http://bfollington.tumblr.com
   

Post Reply



 



Advertisement

Worth A Click