[webkit-dev] Font description + font family = redundancy?

David Hyatt hyatt at apple.com
Wed Jun 18 15:14:40 PDT 2008


You can specify multiple font families in a single CSS font  
declaration.  Therefore a FontDescription can contain multiple  
families in a list.  The AtomicString represents one of the families  
in the list.

dave

On Jun 18, 2008, at 5:04 PM, Joshua Chia wrote:

> I'm trying to understand the font-related code in WebCore/platform/ 
> graphics.
>
> FontCache::createFontPlatformData() takes two arguments: a  
> FontDescription and an AtomicString specifying the family.  Since  
> FontDescription already has family specified in it, why does  
> createFontPlatformData() take the AtomicString family argument?   
> What do the two respective family specifications in the  
> FontDescription and the AtomicString mean for  
> createFontPlatformData?  Isn't this some kind of redundancy?  I have  
> the same question about FontCache::getCachedFontPlatformData().
>
> Furthermore, FontCache::createFontPlatformData() calls  
> FontPlatformData::FontPlatformData(FontDescription, AtomicString),  
> so I have the same question about  
> FontPlatformData::FontPlatformData().
>
> Josh
>
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev



More information about the webkit-dev mailing list