The Daily Click ::. Forums ::. Klik Coding Help ::. MMF2 Text Blitter Object - Space Size
 

Post Reply  Post Oekaki 
 

Posted By Message

-Liam-

Cake Addict

Registered
  06/12/2008
Points
  556

Wii OwnerIt's-a me, Mario!Hero of TimeStrawberry
28th June, 2016 at 28/06/2016 12:05:29 -

Is it possible to adjust the size of the spaces between words? It's a bit too large for my 10x10 character size. Also, can the spacing between individual characters be adjusted? Thinner letters have quite a gap between them, if you consider somethign like "M" and "I".

Thanks for any help.

 
Image

Tell 'em Babs is 'ere...

Fifth

Quadruped

Registered
  07/05/2003
Points
  5818

VIP MemberGOTW JULY 2010 WINNER!Kliktober Special Award TagGOTW HALLOWEEN 2011 WINNERPicture Me This Round 51 Winner!
6th July, 2016 at 06/07/2016 01:41:03 -

I know this is possible. Podunkian once had a small tutorial on how it's done. The way I THOUGHT it worked is that you first create an array that lists the width of each character. You have to enter this data manually. Then you use the Text Blitter's callback and set each character's width or spacing based on the data in the array.

Except there IS no callback for character spacing, and if you set a character's width through callback, it doesn't automatically adjust the next character in line accordingly.

So I'm not totally sure how Podunkian did it. The only thing I can think of is to make another array that has a running sum of where each character is on a line (you'd need a loop to run through each character, then save that to the array), and adjust the characters' positions based on that data.

Or if you can figure out a way to contact Podunkian, he might still know.

 
Go Moon!

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49667

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
6th July, 2016 at 06/07/2016 18:57:03 -

You could also drop the text blitter and use active objects for each letter, then use the width of the letter to calculate the spacing.

This also allows you to do scaling effects on each individual letter and cool stuff like that.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click