Honestly, I don't know. At least not w/o reading findNextLineBreak. It's not a part of the code I've had to look into in great detail yet.
You can ask on #webkit, but it's better if you just read the source yourself: http://trac.webkit.org/browser/trunk/Source/WebCore/rendering/RenderBlockLineLayout.cpp#L1676 -eric On Wed, Apr 20, 2011 at 11:13 AM, Soheil Servati Beiragh <[email protected] > wrote: > Ok Eric but Can you also tell me in brief how it decides to go to the next > line? Does the function uses glyph metrics to for example calculate the > width of each character and the decides how many will reach the limit? Or > there so kind of approximation? Also if it do use glyph metrics can you > guide to the variable to pointer to where it gets its needed info? > > I'm going through the function but I'm at beginning of the road. > > *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] > > > --- On *Tue, 19/4/11, Eric Seidel <[email protected]>* wrote: > > > From: Eric Seidel <[email protected]> > Subject: Re: [webkit-dev] WebKit Text Rendering > To: [email protected] > Cc: [email protected] > Date: Tuesday, 19 April, 2011, 10:56 AM > > > 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] <http://mc/[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] <http://mc/[email protected]> > > _______________________________________________ > webkit-dev mailing list > [email protected]<http://mc/[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

