Re: [fltk.development] [RFE] STR #2941: RFE: fl_text_extents(): supportmultiple lines

2013-03-27 Thread Greg Ercolano
On 03/27/13 11:41, chris wrote: > Hm, doesn't fl_measure() do all this already? No, fl_measure() measures typographical area, whereas fl_text_extents() measures the 'inking area'. These are very different. See the test/unittests program, "text rendering" test for a

Re: [fltk.development] [RFE] STR #2941: RFE: fl_text_extents(): supportmultiple lines

2013-03-27 Thread chris
Hm, doesn't fl_measure() do all this already? - chris > >Would be nice if an alternate version of fl_text_extents() were available >that could handle crlfs in the string. > >Probably wouldn't be too hard; just need to break the one string >into separate lines, then run the existing fl_text_extents