[cairo] reverse of finding text extents

Roman Beslik beroal at ukr.net
Sun Sep 11 14:01:22 PDT 2011


Hello.
For some text T and some number S, how can I determine the longest 
prefix T' of T such that the width of the image of T' is less than S? 
The practical aim is to break T into lines which fit in a rectangle.


More information about the cairo mailing list