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

[REBOL] Re: Text width in VID (Was: Re: Compressing image data (bugs?))

From: antonr:iinet:au at: 8-Dec-2003 0:40

There are two methods I discovered: text-size: get in layout reduce [ 'origin 0 'text "example string" ] 'size text-size: size-text f: make-face/size/spec 'text 1000x100 [ text: "example string" ] I found the second operates faster. I just remembered they give different results for height (87x19 and 87x15) but I only needed width at the time I wrote it. I haven't figured out why yet. Anton.