Re: Counting lines of text

2018-06-27 Thread Keith Culotta via 4D_Tech
That sounds like a job for TEXT TO ARRAY ( varText ; arrText ; width ; fontName ; fontSize {; fontStyle {; *}} ) Keith - CDI > On Jun 27, 2018, at 4:31 PM, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > I have a need to know how many lines a block of text will occupy. > Given: >

Counting lines of text

2018-06-27 Thread Pat Bensky via 4D_Tech
I have a need to know how many lines a block of text will occupy. Given: - the plain text - the font - font size - text area width I'm thinking it should be possible to do this by creating a WritePro object, adding the text and setting the various parameters - this would create an accurate