[webkit-dev] Glyph data in Rendering Text

Soheil Servati Beiragh sservati at yahoo.com
Mon May 30 09:01:02 PDT 2011


I didn't found #webkit in the list when I used the IRC chat client software.
 
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: servati at uwindsor.ca


________________________________
From: Eric Seidel <eric at webkit.org>
To: Soheil Servati Beiragh <sservati at yahoo.com>
Sent: Sunday, May 29, 2011 4:50 PM
Subject: Re: [webkit-dev] Glyph data in Rendering Text


#webkit-efl is not likely as useful as #webkit.  EFL is just a port, #webkit is where the core devs hang out.


On Wed, May 18, 2011 at 3:24 PM, Soheil Servati Beiragh <sservati at yahoo.com> wrote:

I couldn't manage to find you on IRC yet. I joined the channel #webkit-efl but for now no luck.
>Any way...
>I'm working on a new text layout scheme for webkit

That sounds like a bad idea... What do you mean by a "new text layout scheme"?  Is it spec'd anywhere?  Does any other browser do the scheme in question?  How does it interact with CSS layout?
 
and I needed to find out:
>
>
>1. Does webkit renders bitmap glyphs before it starts to do layout or it just uses the data from font file for metrics?

WebKit does not render glyphs.  The platform's font system does.  Source/WebCore/platform/graphics (and /text) have abstractions for taling to the various platform font systems.
 
2. If it does, where does it save the bitmap glyphs and if not where it saves the data from font file?

Again, this is all handled by the underlying platform libraries.  WebCore keeps a glyph cache.  Where it caches glyph identifiers (pointers on some platforms) as well as some measurement information per-character.  But it just hands those identifiers off to the platform again to do the drawing.
 
3. I need to find out where it gives the layout engine the size of the block for text and the position of the block on screen?

This sort of information is calculated during layout() and stored on the RenderObjects.  RenderBoxModelObject is the superclass for all RenderObjects which layout according to the CSS box model (which you can search for on google and read more about).  Search for my name on YouTube to find a video describing some of this.
 
Thanks for your attention

Again, inventing a new layout scheme is probably a bad idea.  Designing one in a research paper is fine, but you probably won't want to implement it... :)

SVG Text has some of its own line layout.  You'll need to learn more about the line box tree.  (InlineBox and subclasses.)  MathML also does some of its own layout modifications on top of CSS line layout.

Best of luck.
 
 
>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: servati at uwindsor.ca
>
>
>________________________________
>From: Eric Seidel <eric at webkit.org>
>To: Soheil Servati Beiragh <sservati at yahoo.com>
>Sent: Tuesday, May 17, 2011 4:35 PM
>
>Subject: Re: [webkit-dev] Glyph data in Rendering Text
>
>
>
>Did you find your answer?  I'm on #webkit as 'eseidel'
>
>
>On Mon, May 16, 2011 at 12:40 PM, Eric Seidel <eric at webkit.org> wrote:
>
>http://www.webkit.org/contact.html
>>On May 16, 2011 12:25 PM, "Soheil Servati Beiragh" <sservati at yahoo.com> wrote:
>>> what do you mean by #webkit?
>>> 
>>> 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: servati at uwindsor.ca
>>> 
>>> 
>>> ________________________________
>>> From: Eric Seidel <eric at webkit.org>
>>> To: Soheil Servati Beiragh <sservati at yahoo.com>
>>> Sent: Monday, May 16, 2011 2:11 PM
>>> Subject: Re: [webkit-dev] Glyph data in Rendering Text
>>> 
>>> 
>>> Best to discuss this on #webkit.
>>> 
>>> 
>>> On Mon, May 16, 2011 at 10:58 AM, Soheil Servati Beiragh <sservati at yahoo.com> wrote:
>>> 
>>> In the while loop on line 1944 of RenderBlockLineLayout.cpp the script should use the width of characters from glyph metrics to determine where to put the line break. I want to know where it looks for that data. I did searched and grep the webcore/platform/graphics before but nothing useful in glyph header files so far!
>>>> 
>>>>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: servati at uwindsor.ca
>>>>
>>>>
>>>>________________________________
>>>>From: Eric Seidel <eric at webkit.org>
>>>>To: Soheil Servati Beiragh <sservati at yahoo.com>
>>>>Cc: "webkit-dev at lists.webkit.org" <webkit-dev at lists.webkit.org>
>>>>Sent: Monday, May 16, 2011 1:50 PM
>>>>Subject: Re: [webkit-dev] Glyph data in Rendering Text
>>>>
>>>>
>>>>
>>>>Look under Sources/WebCore/platform/graphics.
>>>>
>>>>
>>>>Or just grep the source directory for "glyph". :)
>>>>
>>>>
>>>>-eric
>>>>
>>>>
>>>>On Mon, May 16, 2011 at 9:52 AM, Soheil Servati Beiragh <sservati at yahoo.com> wrote:
>>>>
>>>>Hi
>>>>>I want to find out where does webkit saves the glyph data of characters and read from it? I think when it renders text it should first render bitmap of the characters and use the measuring data to do layout. I went trough lots of objects but no success. 
>>>>> 
>>>>>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: servati at uwindsor.ca
>>>>>_______________________________________________
>>>>>webkit-dev mailing list
>>>>>webkit-dev at lists.webkit.org
>>>>>http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20110530/15aa501e/attachment.html>


More information about the webkit-dev mailing list