[webkit-dev] how does Webkit handle font

David Kilzer ddkilzer at webkit.org
Tue Apr 21 11:41:41 PDT 2009


No, libicu is used to lay out international text.

CSS fonts are handled by files with "CSS" and "font" in their name, which will lead you to other files with "font" in their name under the WebCore/platform/graphics/ directory.

$ find WebCore -iname \*font\* -print | grep -i css
WebCore/css/CSSFontFace.cpp
WebCore/css/CSSFontFace.h
WebCore/css/CSSFontFaceRule.cpp
WebCore/css/CSSFontFaceRule.h
WebCore/css/CSSFontFaceRule.idl
WebCore/css/CSSFontFaceSource.cpp
WebCore/css/CSSFontFaceSource.h
WebCore/css/CSSFontFaceSrcValue.cpp
WebCore/css/CSSFontFaceSrcValue.h
WebCore/css/CSSFontSelector.cpp
WebCore/css/CSSFontSelector.h
WebCore/css/CSSSegmentedFontFace.cpp
WebCore/css/CSSSegmentedFontFace.h
WebCore/css/FontFamilyValue.cpp
WebCore/css/FontFamilyValue.h
WebCore/css/FontValue.cpp
WebCore/css/FontValue.h

Dave




________________________________
From: x yz <lastguy at yahoo.com>
To: webkit-dev at lists.webkit.org; ying lcs <yinglcs at gmail.com>
Sent: Tuesday, April 21, 2009 11:10:20 AM
Subject: Re: [webkit-dev] how does Webkit handle font


I think it is handled by libicu.


--- On Tue, 4/21/09, ying lcs <yinglcs at gmail.com> wrote:

> From: ying lcs <yinglcs at gmail.com>
> Subject: [webkit-dev] how does Webkit handle font
> To: webkit-dev at lists.webkit.org
> Date: Tuesday, April 21, 2009, 2:00 PM
> Hi,
> 
> Can you please tell me how does Webkit handle font? (e.g.
> which files
> I should look at)
> e.g. css can specify a particular font for a paragraph ,
> where/how
> does Webkit load the font from the OS (or how does it know
> the font
> actually exists?
> 
> Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20090421/64ebeaad/attachment.html>


More information about the webkit-dev mailing list