Line breaking is done in findNextLineBreak in RenderBlockLineLayout. There is a talk on Youtube from me which touches on some of this.
The RenderTexts get broken into lines, then the bidi algorithm is run and then line boxes are created. The text contents of the line boxes are passed individually to the paint functions at paint time. -eric On Tue, Apr 19, 2011 at 7:48 AM, Soheil Servati Beiragh <[email protected]>wrote: > Hi > > I'm working on text rendering of WebKit. I tried to find my path through it > and I was a bit successful but I'm wondering in a gtk build when there is a > large paragraph of text to be shown on screen where does the length of each > line decided? I know that to show text a drawText function in the Font.cpp > is called but the issue is it gets a string for each line, my question is > for a large paragraph where does the code cuts the text in lines and decides > the length and prepare it for drawText function? > > Thanks > > *Soheil Servati Beiragh* > > *PhD Candidate, ECE Department, > * > > *Research Center for Integrated Microsystems,* > *University of Windsor.* > Room 268 Essex Hall > > 401 Sunset Avenue > Windsor, Ontario > Canada, N9B 3P4 > > Phone: 519-253-3000 Ext 3396 > > Email: [email protected] > > _______________________________________________ > webkit-dev mailing list > [email protected] > http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev > >
_______________________________________________ webkit-dev mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

