Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: text-fit function?

From: gabriele::colellachiara::com at: 14-Aug-2004 21:00

Hi Maxim, On Saturday, August 14, 2004, 7:10:59 PM, you wrote: MOA> in font handling gfx apis I've used before That is MOA> exactly why there is a text-fit function which basically MOA> returns how many chars, using a proportional font will fit MOA> within a specific width. This allows you change the font or MOA> break up your string as you wish... Like I need to do right MOA> now... basically I need to handle word-wrapping manually.... When needing to do that, I broke the string into words and then measured them with SIZE-TEXT. Though that was because I was actually positioning them in the face manually, word by word. In your case TEXTINFO is much better. Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amiga Group Italia sez. L'Aquila --- SOON: