haikuwebkit/LayoutTests/css3/font-feature-font-face-loca...

24 lines
670 B
HTML
Raw Permalink Normal View History

Font features specified in @font-face blocks don't apply to local() families https://bugs.webkit.org/show_bug.cgi?id=154554 Reviewed by Dean Jackson. Source/WebCore: The correct variables just need to be wired up. In addition, our caches need to be sensitive to the new data. Test: css3/font-feature-font-face-local.html * css/CSSFontFaceSource.cpp: (WebCore::CSSFontFaceSource::font): * platform/graphics/FontCache.cpp: (WebCore::FontPlatformDataCacheKey::FontPlatformDataCacheKey): (WebCore::FontPlatformDataCacheKey::operator==): (WebCore::FontPlatformDataCacheKeyHash::hash): (WebCore::FontCache::getCachedFontPlatformData): (WebCore::FontCache::fontForFamily): * platform/graphics/FontCache.h: * platform/graphics/FontFeatureSettings.h: (WebCore::FontFeature::operator!=): (WebCore::FontFeatureSettings::operator!=): * platform/graphics/cocoa/FontCacheCoreText.cpp: (WebCore::fontWithFamily): (WebCore::FontCache::createFontPlatformData): * platform/graphics/mac/ComplexTextControllerCoreText.mm: (WebCore::ComplexTextController::collectComplexTextRunsForCharacters): * platform/graphics/mac/FontCacheMac.mm: (WebCore::FontCache::lastResortFallbackFont): * platform/text/TextFlags.h: (WebCore::FontVariantSettings::operator==): (WebCore::FontVariantSettings::operator!=): (WebCore::FontVariantSettings::uniqueValue): LayoutTests: * css3/font-feature-font-face-local-expected.html: Added. * css3/font-feature-font-face-local.html: Added. Canonical link: https://commits.webkit.org/172675@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@196969 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-02-23 07:17:29 +00:00
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
Font features specified in @font-face blocks don't apply to local() families https://bugs.webkit.org/show_bug.cgi?id=154554 Reviewed by Dean Jackson. Source/WebCore: The correct variables just need to be wired up. In addition, our caches need to be sensitive to the new data. Test: css3/font-feature-font-face-local.html * css/CSSFontFaceSource.cpp: (WebCore::CSSFontFaceSource::font): * platform/graphics/FontCache.cpp: (WebCore::FontPlatformDataCacheKey::FontPlatformDataCacheKey): (WebCore::FontPlatformDataCacheKey::operator==): (WebCore::FontPlatformDataCacheKeyHash::hash): (WebCore::FontCache::getCachedFontPlatformData): (WebCore::FontCache::fontForFamily): * platform/graphics/FontCache.h: * platform/graphics/FontFeatureSettings.h: (WebCore::FontFeature::operator!=): (WebCore::FontFeatureSettings::operator!=): * platform/graphics/cocoa/FontCacheCoreText.cpp: (WebCore::fontWithFamily): (WebCore::FontCache::createFontPlatformData): * platform/graphics/mac/ComplexTextControllerCoreText.mm: (WebCore::ComplexTextController::collectComplexTextRunsForCharacters): * platform/graphics/mac/FontCacheMac.mm: (WebCore::FontCache::lastResortFallbackFont): * platform/text/TextFlags.h: (WebCore::FontVariantSettings::operator==): (WebCore::FontVariantSettings::operator!=): (WebCore::FontVariantSettings::uniqueValue): LayoutTests: * css3/font-feature-font-face-local-expected.html: Added. * css3/font-feature-font-face-local.html: Added. Canonical link: https://commits.webkit.org/172675@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@196969 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-02-23 07:17:29 +00:00
<style>
@font-face {
font-family: HigaginoSans-fixed;
src: local("Hiragino Sans");
font-feature-settings: 'hwid','zero';
}
pre {
font-family: 'HigaginoSans-fixed';
}
</style>
</head>
<body>
<pre><span style="font-feature-settings: 'hwid','zero';">12345678901234567890123456789012345678901234567890123456789012345678901234567890</span>
<span style="font-feature-settings: 'zero';"></span>
<span style="font-feature-settings: 'hwid','zero';">iiiiii
WWWWWW</span>
あいう</pre>
</body>
</html>