I am trying to figure out the exact class or classes that format and wrap text in webkit. Does webkit expose text formatting in any API? Given an HTML string (or even plain text string), a font and given width of the rectangle, can it return height of rectangle necessary to fit the text? I will appreciate if anybody has insight into this. Thanks