OSDN Git Service

Fixed 2720133. Better lookup with @font-face local
authorRussell Brenner <russellbrenner@google.com>
Wed, 3 Nov 2010 18:06:53 +0000 (11:06 -0700)
committerRussell Brenner <russellbrenner@google.com>
Wed, 3 Nov 2010 20:49:56 +0000 (13:49 -0700)
commitfd0bf63b4addb1bcb90de078bbd4700e2545a69f
tree73e7fe903b71f293ba31819eea06d1bdafecf7b7
parent3f59611892f4a1f2cf52ade896c85995a2a30ec5
Fixed 2720133. Better lookup with @font-face local

Using existing Skia APIs, FontCache::createFontPlatformData can detect when
the retrieved font is the Skia default and will reject that choice,
allowing WebCore to try the next font on the CSS fallback list. If the
requested family is a generic family, e.g. "serif" or "monotype", the Skia
default will be accepted.

Change-Id: I8007caae96f26cd58ea1cf5bf2da8170e3ce6d9d
Bug: 2720133
WebCore/platform/graphics/android/FontCacheAndroid.cpp