Re: [webkit-dev] WebKit Text Rendering

2011-04-20 Thread Eric Seidel
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 sserv...@yahoo.com
 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: serv...@uwindsor.ca


 --- On *Tue, 19/4/11, Eric Seidel e...@webkit.org* wrote:


 From: Eric Seidel e...@webkit.org
 Subject: Re: [webkit-dev] WebKit Text Rendering
 To: sserv...@yahoo.com
 Cc: webkit-dev@lists.webkit.org
 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 
 sserv...@yahoo.com http://mc/compose?to=sserv...@yahoo.com 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: serv...@uwindsor.ca http://mc/compose?to=serv...@uwindsor.ca

 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.orghttp://mc/compose?to=webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev



___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] WebKit Text Rendering

2011-04-19 Thread Eric Seidel
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
sserv...@yahoo.comwrote:

 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: serv...@uwindsor.ca

 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev