Fonts are loaded when text is rendered. FontDescription objects are created and used to fetch Font objects from the FontCache which are held off the RenderStyle for a RenderText node. GyphPages are filled lazily from the Font as glyphs are drawn.
Yes, we should have better documentation. But sadly, WebKit doesn't. You can always ask in #webkit on irc.webkit.org about pieces of WebKit architecture. Best advice is to just download and sniff around in WebKit code. As they say: "Use the the Source Luke!" Look at things like PlatformFontData if you want to see how Skia, CoreGraphics, etc. handle platform-specific font bits. Font is the class which knows how to answer all the questions like "how wide is this gyph". http://trac.webkit.org/browser/trunk/WebCore should have all the code you care about. It's possible that some of the platform/chromium files you need are missing from WebKit's repository, for those you'd have to look in: http://src.chromium.org/viewvc/chrome/trunk/src/webkit/ -eric On Mon, Jun 1, 2009 at 12:15 AM, Lucius Fox <[email protected]> wrote: > > Hi, > > Can you please point me to the code (for mac os) where chromium load > font during page rendering? > for example, chromium needs to load the font matrix for the font > specified by css/html for text to measure how much of it can fit on 1 > line and wrap the rest for the next line? > > Thank you. > > > > --~--~---------~--~----~------------~-------~--~----~ Chromium Developers mailing list: [email protected] View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-dev -~----------~----~----~----~------~----~------~--~---
