haikuwebkit/LayoutTests/css3/font-feature-settings-rende...

153 lines
7.8 KiB
HTML
Raw Permalink Normal View History

Test font-variant-* and font-feature-settings with mocked preinstalled fonts https://bugs.webkit.org/show_bug.cgi?id=149777 Reviewed by Simon Fraser. Tools: Include FontWithFeatures in DumpRenderTree and WebKitTestRunner. Add it to the list of tests to preinstall at startup time. Also, update the generation of the 'name' table in the FontWithFeatures font. * DumpRenderTree/mac/DumpRenderTree.mm: (allowedFontFamilySet): (activateTestingFonts): (activateFontsIOS): * FontWithFeatures/FontWithFeatures/FontCreator.cpp: (Generator::generate): (Generator::appendCFFTable): (Generator::appendNameSubtable): (Generator::appendNAMETable): * FontWithFeatures/FontWithFeatures/main.cpp: (main): * WebKitTestRunner/InjectedBundle/cocoa/ActivateFontsCocoa.mm: (WTR::allowedFontFamilySet): (WTR::activateFonts): * WebKitTestRunner/mac/TestControllerMac.mm: (WTR::allowedFontFamilySet): LayoutTests: See per-file comments. * css3/font-feature-settings-preinstalled-fonts.html: Removed. Superseded by css3/font-feature-settings-rendering.html. * css3/font-feature-settings-rendering-2-expected.html: Removed. * css3/font-feature-settings-rendering-2.html: Removed. Renamed to css3/font-feature-settings-rendering.html * css3/font-feature-settings-rendering-expected.html: Added. * css3/font-feature-settings-rendering.html: * css3/font-variant-all-expected.html: * css3/font-variant-all.html: * css3/resources/FontWithFeatures.otf: Update for new 'name' table. * css3/resources/FontWithFeatures.ttf: Ditto. Canonical link: https://commits.webkit.org/168142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@190848 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-10-11 20:23:26 +00:00
<!DOCTYPE html>
<html>
<head>
<style>
@font-face {
font-family: "FontFeaturesTestOTF";
src: url("resources/FontWithFeatures.otf") format("opentype");
}
@font-face {
font-family: "FontFeaturesTestTTF";
src: url("resources/FontWithFeatures.ttf") format("truetype");
}
</style>
</head>
<body>
This tests that font features are able to be turned on and off as desired. It uses a special font
designed specifically for this purpose. The test passes if you see a sequence of alternating check
marks and X below.
<div style="font-family: FontWithFeaturesOTF;">AB</div>
<div style="font-family: FontWithFeaturesTTF;">AB</div>
Test font-variant-* and font-feature-settings with mocked preinstalled fonts https://bugs.webkit.org/show_bug.cgi?id=149777 Reviewed by Simon Fraser. Tools: Include FontWithFeatures in DumpRenderTree and WebKitTestRunner. Add it to the list of tests to preinstall at startup time. Also, update the generation of the 'name' table in the FontWithFeatures font. * DumpRenderTree/mac/DumpRenderTree.mm: (allowedFontFamilySet): (activateTestingFonts): (activateFontsIOS): * FontWithFeatures/FontWithFeatures/FontCreator.cpp: (Generator::generate): (Generator::appendCFFTable): (Generator::appendNameSubtable): (Generator::appendNAMETable): * FontWithFeatures/FontWithFeatures/main.cpp: (main): * WebKitTestRunner/InjectedBundle/cocoa/ActivateFontsCocoa.mm: (WTR::allowedFontFamilySet): (WTR::activateFonts): * WebKitTestRunner/mac/TestControllerMac.mm: (WTR::allowedFontFamilySet): LayoutTests: See per-file comments. * css3/font-feature-settings-preinstalled-fonts.html: Removed. Superseded by css3/font-feature-settings-rendering.html. * css3/font-feature-settings-rendering-2-expected.html: Removed. * css3/font-feature-settings-rendering-2.html: Removed. Renamed to css3/font-feature-settings-rendering.html * css3/font-feature-settings-rendering-expected.html: Added. * css3/font-feature-settings-rendering.html: * css3/font-variant-all-expected.html: * css3/font-variant-all.html: * css3/resources/FontWithFeatures.otf: Update for new 'name' table. * css3/resources/FontWithFeatures.ttf: Ditto. Canonical link: https://commits.webkit.org/168142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@190848 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-10-11 20:23:26 +00:00
<div><span style="font-family: FontFeaturesTestOTF;">BA</span>
<span style="font-family: FontFeaturesTestOTF;">BA</span>
<span style="font-family: FontFeaturesTestOTF;">BA</span>
<span style="font-family: FontFeaturesTestOTF;">BA</span>
<span style="font-family: FontFeaturesTestOTF;">BA</span>
<span style="font-family: FontFeaturesTestOTF;">BA</span>
<span style="font-family: FontFeaturesTestOTF;">BA</span>
<span style="font-family: FontFeaturesTestOTF;">BA</span>
<span style="font-family: FontFeaturesTestOTF;">BA</span>
<span style="font-family: FontFeaturesTestOTF;">BA</span>
<span style="font-family: FontFeaturesTestOTF;">BA</span>
<span style="font-family: FontFeaturesTestOTF;">BA</span>
<span style="font-family: FontFeaturesTestOTF;">BA</span>
<span style="font-family: FontFeaturesTestOTF;">BA</span>
<span style="font-family: FontFeaturesTestOTF;">BA</span>
<span style="font-family: FontFeaturesTestOTF;">BA</span>
<span style="font-family: FontFeaturesTestOTF;">BA</span>
<span style="font-family: FontFeaturesTestOTF;">BA</span>
<span style="font-family: FontFeaturesTestOTF;">BA</span>
<span style="font-family: FontFeaturesTestOTF;">BA</span>
<span style="font-family: FontFeaturesTestOTF;">BA</span>
<span style="font-family: FontFeaturesTestOTF;">BA</span>
<span style="font-family: FontFeaturesTestOTF;">BA</span>
<span style="font-family: FontFeaturesTestOTF;">BA</span>
<span style="font-family: FontFeaturesTestOTF;">BA</span>
<span style="font-family: FontFeaturesTestOTF;">BA</span>
<span style="font-family: FontFeaturesTestOTF;">BA</span>
<span style="font-family: FontFeaturesTestOTF;">BA</span>
<span style="font-family: FontFeaturesTestOTF;">BA</span>
<span style="font-family: FontFeaturesTestOTF;">BA</span>
</div>
<div><span style="font-family: FontFeaturesTestTTF;">BA</span>
<span style="font-family: FontFeaturesTestTTF;">BA</span>
<span style="font-family: FontFeaturesTestTTF;">BA</span>
<span style="font-family: FontFeaturesTestTTF;">BA</span>
<span style="font-family: FontFeaturesTestTTF;">BA</span>
<span style="font-family: FontFeaturesTestTTF;">BA</span>
<span style="font-family: FontFeaturesTestTTF;">BA</span>
<span style="font-family: FontFeaturesTestTTF;">BA</span>
<span style="font-family: FontFeaturesTestTTF;">BA</span>
<span style="font-family: FontFeaturesTestTTF;">BA</span>
<span style="font-family: FontFeaturesTestTTF;">BA</span>
<span style="font-family: FontFeaturesTestTTF;">BA</span>
<span style="font-family: FontFeaturesTestTTF;">BA</span>
<span style="font-family: FontFeaturesTestTTF;">BA</span>
<span style="font-family: FontFeaturesTestTTF;">BA</span>
<span style="font-family: FontFeaturesTestTTF;">BA</span>
<span style="font-family: FontFeaturesTestTTF;">BA</span>
<span style="font-family: FontFeaturesTestTTF;">BA</span>
<span style="font-family: FontFeaturesTestTTF;">BA</span>
<span style="font-family: FontFeaturesTestTTF;">BA</span>
<span style="font-family: FontFeaturesTestTTF;">BA</span>
<span style="font-family: FontFeaturesTestTTF;">BA</span>
<span style="font-family: FontFeaturesTestTTF;">BA</span>
<span style="font-family: FontFeaturesTestTTF;">BA</span>
<span style="font-family: FontFeaturesTestTTF;">BA</span>
<span style="font-family: FontFeaturesTestTTF;">BA</span>
<span style="font-family: FontFeaturesTestTTF;">BA</span>
<span style="font-family: FontFeaturesTestTTF;">BA</span>
<span style="font-family: FontFeaturesTestTTF;">BA</span>
<span style="font-family: FontFeaturesTestTTF;">BA</span>
<span style="font-family: FontFeaturesTestTTF;">BA</span>
<span style="font-family: FontFeaturesTestTTF;">BA</span>
<span style="font-family: FontFeaturesTestTTF;">BA</span>
</div>
<div><span style="font-family: FontWithFeaturesOTF;">BA</span>
<span style="font-family: FontWithFeaturesOTF;">BA</span>
<span style="font-family: FontWithFeaturesOTF;">BA</span>
<span style="font-family: FontWithFeaturesOTF;">BA</span>
<span style="font-family: FontWithFeaturesOTF;">BA</span>
<span style="font-family: FontWithFeaturesOTF;">BA</span>
<span style="font-family: FontWithFeaturesOTF;">BA</span>
<span style="font-family: FontWithFeaturesOTF;">BA</span>
<span style="font-family: FontWithFeaturesOTF;">BA</span>
<span style="font-family: FontWithFeaturesOTF;">BA</span>
<span style="font-family: FontWithFeaturesOTF;">BA</span>
<span style="font-family: FontWithFeaturesOTF;">BA</span>
<span style="font-family: FontWithFeaturesOTF;">BA</span>
<span style="font-family: FontWithFeaturesOTF;">BA</span>
<span style="font-family: FontWithFeaturesOTF;">BA</span>
<span style="font-family: FontWithFeaturesOTF;">BA</span>
<span style="font-family: FontWithFeaturesOTF;">BA</span>
<span style="font-family: FontWithFeaturesOTF;">BA</span>
<span style="font-family: FontWithFeaturesOTF;">BA</span>
<span style="font-family: FontWithFeaturesOTF;">BA</span>
<span style="font-family: FontWithFeaturesOTF;">BA</span>
<span style="font-family: FontWithFeaturesOTF;">BA</span>
<span style="font-family: FontWithFeaturesOTF;">BA</span>
<span style="font-family: FontWithFeaturesOTF;">BA</span>
<span style="font-family: FontWithFeaturesOTF;">BA</span>
<span style="font-family: FontWithFeaturesOTF;">BA</span>
<span style="font-family: FontWithFeaturesOTF;">BA</span>
<span style="font-family: FontWithFeaturesOTF;">BA</span>
<span style="font-family: FontWithFeaturesOTF;">BA</span>
<span style="font-family: FontWithFeaturesOTF;">BA</span>
</div>
<div><span style="font-family: FontWithFeaturesTTF;">BA</span>
<span style="font-family: FontWithFeaturesTTF;">BA</span>
<span style="font-family: FontWithFeaturesTTF;">BA</span>
<span style="font-family: FontWithFeaturesTTF;">BA</span>
<span style="font-family: FontWithFeaturesTTF;">BA</span>
<span style="font-family: FontWithFeaturesTTF;">BA</span>
<span style="font-family: FontWithFeaturesTTF;">BA</span>
<span style="font-family: FontWithFeaturesTTF;">BA</span>
<span style="font-family: FontWithFeaturesTTF;">BA</span>
<span style="font-family: FontWithFeaturesTTF;">BA</span>
<span style="font-family: FontWithFeaturesTTF;">BA</span>
<span style="font-family: FontWithFeaturesTTF;">BA</span>
<span style="font-family: FontWithFeaturesTTF;">BA</span>
<span style="font-family: FontWithFeaturesTTF;">BA</span>
<span style="font-family: FontWithFeaturesTTF;">BA</span>
<span style="font-family: FontWithFeaturesTTF;">BA</span>
<span style="font-family: FontWithFeaturesTTF;">BA</span>
<span style="font-family: FontWithFeaturesTTF;">BA</span>
<span style="font-family: FontWithFeaturesTTF;">BA</span>
<span style="font-family: FontWithFeaturesTTF;">BA</span>
<span style="font-family: FontWithFeaturesTTF;">BA</span>
<span style="font-family: FontWithFeaturesTTF;">BA</span>
<span style="font-family: FontWithFeaturesTTF;">BA</span>
<span style="font-family: FontWithFeaturesTTF;">BA</span>
<span style="font-family: FontWithFeaturesTTF;">BA</span>
<span style="font-family: FontWithFeaturesTTF;">BA</span>
<span style="font-family: FontWithFeaturesTTF;">BA</span>
<span style="font-family: FontWithFeaturesTTF;">BA</span>
<span style="font-family: FontWithFeaturesTTF;">BA</span>
<span style="font-family: FontWithFeaturesTTF;">BA</span>
<span style="font-family: FontWithFeaturesTTF;">BA</span>
<span style="font-family: FontWithFeaturesTTF;">BA</span>
<span style="font-family: FontWithFeaturesTTF;">BA</span>
</div>
</body>
</html>