=/
Could someone tell me how to do this? (Don't post the code, unless pseudo). I'm wondering how to make it so if a word drips off the line on to the next, it, well, won't, it'll just move to the next. =/
ID:269326
![]() May 26 2005, 11:34 am
|
|
![]() May 26 2005, 12:54 pm
|
|
Create a function the seperates the text into individual words, then check the space left before putting a word up.
|
Hell Ramen wrote:
=/ DmiFonts already supports this sort of functionality. Lummox JR |
Lummox: I checked Dmifonts, and as always, I can't understand your code. =/ So, I tried was Loduwijk said and came up with this:
proc The problem is, it's uber choppy and doesn't work. Like, if I did: "Mickey Mouse, Mickey Mouse!" (I've listened to too many Disney songs today) It'll come out as: "Mickey Mouse, M ickey Mouse!" The only part I think I did wrong was checking g[k] over and over, but I can't think how to make it skip after the first time. Maybe an associative list? |
Hell Ramen wrote:
Lummox: I checked Dmifonts, and as always, I can't understand your code. Uh, why would you have to? DmiFonts includes the routines to break up the text without you having to intervene. Tell it what to display and what sort of room it has to work with, and it'll build the icons for you. Of course if you were trying to adapt this to some other sort of text-on-screen library, then duh, that's kind of across purposes. The routines for handling word breaks are not generic and were never intended to be. Lummox JR |
Well, I don't get how to use Dmifonts all together. >_>
I barely ever use libraries, the only ones I use are a few from Abyss, since I'm kinda' good in math and understand them now and how to use them. So, libraries really aren't my friend. [edit]WillFit() isn't even used in the bubble :( Man |
Hell Ramen wrote:
Well, I don't get how to use Dmifonts all together. >_> This is why it includes documentation. I barely ever use libraries, the only ones I use are a few from Abyss, since I'm kinda' good in math and understand them now and how to use them. So, libraries really aren't my friend. It's been a while since I checked those routines, but as I recall WillFit() isn't what you'd need for this purpose anyway; it's more of an internal affair. Lummox JR |