Changeset 190848 in webkit
- Timestamp:
- Oct 11, 2015 1:23:26 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 15 deleted
- 16 edited
- 4 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r190847 r190848 1 2015-10-11 Myles C. Maxfield <mmaxfield@apple.com> 2 3 Test font-variant-* and font-feature-settings with mocked preinstalled fonts 4 https://bugs.webkit.org/show_bug.cgi?id=149777 5 6 Reviewed by Simon Fraser. 7 8 See per-file comments. 9 10 * css3/font-feature-settings-preinstalled-fonts.html: Removed. Superseded by 11 css3/font-feature-settings-rendering.html. 12 * css3/font-feature-settings-rendering-2-expected.html: Removed. 13 * css3/font-feature-settings-rendering-2.html: Removed. Renamed to 14 css3/font-feature-settings-rendering.html 15 * css3/font-feature-settings-rendering-expected.html: Added. 16 * css3/font-feature-settings-rendering.html: 17 * css3/font-variant-all-expected.html: 18 * css3/font-variant-all.html: 19 * css3/resources/FontWithFeatures.otf: Update for new 'name' table. 20 * css3/resources/FontWithFeatures.ttf: Ditto. 21 1 22 2015-10-11 Yusuke Suzuki <utatane.tea@gmail.com> 2 23 -
trunk/LayoutTests/css3/font-feature-settings-rendering.html
r190564 r190848 1 <!DOCTYPE html> 2 <html> 1 3 <head> 2 4 <style> 3 5 @font-face { 4 /* FeatureTest.ttf is a small font for testing OpenType features. 5 * It contains: 6 * - The black box glyph which is associated with 'W', 'e', 'b', 'K', 'i' and 't'. 7 * - A discretionary ligature glyph of 'WebKit'. 8 */ 9 font-family: 'test'; 10 src: url(resources/FeatureTest.ttf); 6 font-family: "FontFeaturesTestOTF"; 7 src: url("resources/FontWithFeatures.otf") format("opentype"); 11 8 } 12 .dligOn { 13 font-family: 'test'; 14 font-feature-settings: 'dlig'; 15 } 16 .dligOff { 17 font-family: 'test'; 18 font-feature-settings: 'dlig' 0; 19 } 20 .dligNone { 21 font-family: 'test'; 9 @font-face { 10 font-family: "FontFeaturesTestTTF"; 11 src: url("resources/FontWithFeatures.ttf") format("truetype"); 22 12 } 23 13 </style> 14 </head> 15 <body> 16 This tests that font features are able to be turned on and off as desired. It uses a special font 17 designed specifically for this purpose. The test passes if you see a sequence of alternating check 18 marks and X below. 19 <div id="insertionPoint"></div> 20 <div id="insertionPoint2"></div> 21 <div id="insertionPoint3"></div> 22 <div id="insertionPoint4"></div> 24 23 <script> 25 if (window.testRunner) 26 window.testRunner.waitUntilDone(); 24 var insertionPoint = document.getElementById("insertionPoint"); 25 var insertionPoint2 = document.getElementById("insertionPoint2"); 26 var insertionPoint3 = document.getElementById("insertionPoint3"); 27 var insertionPoint4 = document.getElementById("insertionPoint4"); 28 function addElement(placeToInsert, familyName, feature, c) { 29 ["0", "1"].map(function(state) { 30 var element = document.createElement("span"); 31 element.textContent = c; 32 element.style.fontFamily = familyName; 33 element.style.fontFeatureSettings = '"' + feature + '" ' + state; 34 placeToInsert.appendChild(element); 35 }); 36 placeToInsert.appendChild(document.createTextNode(" ")); 37 } 27 38 28 function test() { 29 document.body.offsetTop; 30 if (window.testRunner) 31 testRunner.notifyDone(); 32 } 39 addElement(insertionPoint, "FontFeaturesTestOTF", "liga", "C"); 40 addElement(insertionPoint, "FontFeaturesTestOTF", "clig", "D"); 41 addElement(insertionPoint, "FontFeaturesTestOTF", "dlig", "E"); 42 addElement(insertionPoint, "FontFeaturesTestOTF", "hlig", "F"); 43 addElement(insertionPoint, "FontFeaturesTestOTF", "calt", "G"); 44 addElement(insertionPoint, "FontFeaturesTestOTF", "subs", "H"); 45 addElement(insertionPoint, "FontFeaturesTestOTF", "sups", "I"); 46 addElement(insertionPoint, "FontFeaturesTestOTF", "smcp", "J"); 47 addElement(insertionPoint, "FontFeaturesTestOTF", "c2sc", "K"); 48 addElement(insertionPoint, "FontFeaturesTestOTF", "pcap", "L"); 49 addElement(insertionPoint, "FontFeaturesTestOTF", "c2pc", "M"); 50 addElement(insertionPoint, "FontFeaturesTestOTF", "unic", "N"); 51 addElement(insertionPoint, "FontFeaturesTestOTF", "titl", "O"); 52 addElement(insertionPoint, "FontFeaturesTestOTF", "lnum", "P"); 53 addElement(insertionPoint, "FontFeaturesTestOTF", "onum", "Q"); 54 addElement(insertionPoint, "FontFeaturesTestOTF", "pnum", "R"); 55 addElement(insertionPoint, "FontFeaturesTestOTF", "tnum", "S"); 56 addElement(insertionPoint, "FontFeaturesTestOTF", "frac", "T"); 57 //addElement(insertionPoint, "FontFeaturesTestOTF", "afrc", "U"); 58 addElement(insertionPoint, "FontFeaturesTestOTF", "ordn", "V"); 59 addElement(insertionPoint, "FontFeaturesTestOTF", "zero", "W"); 60 addElement(insertionPoint, "FontFeaturesTestOTF", "hist", "X"); 61 addElement(insertionPoint, "FontFeaturesTestOTF", "jp78", "Y"); 62 addElement(insertionPoint, "FontFeaturesTestOTF", "jp83", "Z"); 63 addElement(insertionPoint, "FontFeaturesTestOTF", "jp90", "a"); 64 addElement(insertionPoint, "FontFeaturesTestOTF", "jp04", "b"); 65 addElement(insertionPoint, "FontFeaturesTestOTF", "smpl", "c"); 66 addElement(insertionPoint, "FontFeaturesTestOTF", "trad", "d"); 67 addElement(insertionPoint, "FontFeaturesTestOTF", "fwid", "e"); 68 addElement(insertionPoint, "FontFeaturesTestOTF", "pwid", "f"); 69 addElement(insertionPoint, "FontFeaturesTestOTF", "ruby", "g"); 70 71 addElement(insertionPoint2, "FontFeaturesTestTTF", "liga", "C"); 72 addElement(insertionPoint2, "FontFeaturesTestTTF", "liga", "D"); 73 addElement(insertionPoint2, "FontFeaturesTestTTF", "clig", "C"); 74 addElement(insertionPoint2, "FontFeaturesTestTTF", "clig", "D"); 75 addElement(insertionPoint2, "FontFeaturesTestTTF", "dlig", "G"); 76 addElement(insertionPoint2, "FontFeaturesTestTTF", "hlig", "I"); 77 addElement(insertionPoint2, "FontFeaturesTestTTF", "calt", "L"); 78 addElement(insertionPoint2, "FontFeaturesTestTTF", "subs", "O"); 79 addElement(insertionPoint2, "FontFeaturesTestTTF", "sups", "P"); 80 addElement(insertionPoint2, "FontFeaturesTestTTF", "smcp", "S"); 81 addElement(insertionPoint2, "FontFeaturesTestTTF", "c2sc", "V"); 82 addElement(insertionPoint2, "FontFeaturesTestTTF", "pcap", "T"); 83 addElement(insertionPoint2, "FontFeaturesTestTTF", "c2pc", "W"); 84 addElement(insertionPoint2, "FontFeaturesTestTTF", "unic", "Y"); 85 addElement(insertionPoint2, "FontFeaturesTestTTF", "titl", "a"); 86 addElement(insertionPoint2, "FontFeaturesTestTTF", "lnum", "c"); 87 addElement(insertionPoint2, "FontFeaturesTestTTF", "onum", "d"); 88 addElement(insertionPoint2, "FontFeaturesTestTTF", "pnum", "f"); 89 addElement(insertionPoint2, "FontFeaturesTestTTF", "tnum", "g"); 90 addElement(insertionPoint2, "FontFeaturesTestTTF", "frac", "i"); 91 addElement(insertionPoint2, "FontFeaturesTestTTF", "afrc", "j"); 92 addElement(insertionPoint2, "FontFeaturesTestTTF", "ordn", "Q"); 93 addElement(insertionPoint2, "FontFeaturesTestTTF", "zero", "k"); 94 addElement(insertionPoint2, "FontFeaturesTestTTF", "hist", "K"); 95 addElement(insertionPoint2, "FontFeaturesTestTTF", "jp78", "m"); 96 addElement(insertionPoint2, "FontFeaturesTestTTF", "jp83", "n"); 97 addElement(insertionPoint2, "FontFeaturesTestTTF", "jp90", "o"); 98 addElement(insertionPoint2, "FontFeaturesTestTTF", "jp04", "p"); 99 addElement(insertionPoint2, "FontFeaturesTestTTF", "smpl", "q"); 100 addElement(insertionPoint2, "FontFeaturesTestTTF", "trad", "r"); 101 addElement(insertionPoint2, "FontFeaturesTestTTF", "fwid", "t"); 102 addElement(insertionPoint2, "FontFeaturesTestTTF", "pwid", "u"); 103 addElement(insertionPoint2, "FontFeaturesTestTTF", "ruby", "v"); 104 105 addElement(insertionPoint3, "FontWithFeaturesOTF", "liga", "C"); 106 addElement(insertionPoint3, "FontWithFeaturesOTF", "clig", "D"); 107 addElement(insertionPoint3, "FontWithFeaturesOTF", "dlig", "E"); 108 addElement(insertionPoint3, "FontWithFeaturesOTF", "hlig", "F"); 109 addElement(insertionPoint3, "FontWithFeaturesOTF", "calt", "G"); 110 addElement(insertionPoint3, "FontWithFeaturesOTF", "subs", "H"); 111 addElement(insertionPoint3, "FontWithFeaturesOTF", "sups", "I"); 112 addElement(insertionPoint3, "FontWithFeaturesOTF", "smcp", "J"); 113 addElement(insertionPoint3, "FontWithFeaturesOTF", "c2sc", "K"); 114 addElement(insertionPoint3, "FontWithFeaturesOTF", "pcap", "L"); 115 addElement(insertionPoint3, "FontWithFeaturesOTF", "c2pc", "M"); 116 addElement(insertionPoint3, "FontWithFeaturesOTF", "unic", "N"); 117 addElement(insertionPoint3, "FontWithFeaturesOTF", "titl", "O"); 118 addElement(insertionPoint3, "FontWithFeaturesOTF", "lnum", "P"); 119 addElement(insertionPoint3, "FontWithFeaturesOTF", "onum", "Q"); 120 addElement(insertionPoint3, "FontWithFeaturesOTF", "pnum", "R"); 121 addElement(insertionPoint3, "FontWithFeaturesOTF", "tnum", "S"); 122 addElement(insertionPoint3, "FontWithFeaturesOTF", "frac", "T"); 123 //addElement(insertionPoint3, "FontWithFeaturesOTF", "afrc", "U"); 124 addElement(insertionPoint3, "FontWithFeaturesOTF", "ordn", "V"); 125 addElement(insertionPoint3, "FontWithFeaturesOTF", "zero", "W"); 126 addElement(insertionPoint3, "FontWithFeaturesOTF", "hist", "X"); 127 addElement(insertionPoint3, "FontWithFeaturesOTF", "jp78", "Y"); 128 addElement(insertionPoint3, "FontWithFeaturesOTF", "jp83", "Z"); 129 addElement(insertionPoint3, "FontWithFeaturesOTF", "jp90", "a"); 130 addElement(insertionPoint3, "FontWithFeaturesOTF", "jp04", "b"); 131 addElement(insertionPoint3, "FontWithFeaturesOTF", "smpl", "c"); 132 addElement(insertionPoint3, "FontWithFeaturesOTF", "trad", "d"); 133 addElement(insertionPoint3, "FontWithFeaturesOTF", "fwid", "e"); 134 addElement(insertionPoint3, "FontWithFeaturesOTF", "pwid", "f"); 135 addElement(insertionPoint3, "FontWithFeaturesOTF", "ruby", "g"); 136 137 addElement(insertionPoint4, "FontWithFeaturesTTF", "liga", "C"); 138 addElement(insertionPoint4, "FontWithFeaturesTTF", "liga", "D"); 139 addElement(insertionPoint4, "FontWithFeaturesTTF", "clig", "C"); 140 addElement(insertionPoint4, "FontWithFeaturesTTF", "clig", "D"); 141 addElement(insertionPoint4, "FontWithFeaturesTTF", "dlig", "G"); 142 addElement(insertionPoint4, "FontWithFeaturesTTF", "hlig", "I"); 143 addElement(insertionPoint4, "FontWithFeaturesTTF", "calt", "L"); 144 addElement(insertionPoint4, "FontWithFeaturesTTF", "subs", "O"); 145 addElement(insertionPoint4, "FontWithFeaturesTTF", "sups", "P"); 146 addElement(insertionPoint4, "FontWithFeaturesTTF", "smcp", "S"); 147 addElement(insertionPoint4, "FontWithFeaturesTTF", "c2sc", "V"); 148 addElement(insertionPoint4, "FontWithFeaturesTTF", "pcap", "T"); 149 addElement(insertionPoint4, "FontWithFeaturesTTF", "c2pc", "W"); 150 addElement(insertionPoint4, "FontWithFeaturesTTF", "unic", "Y"); 151 addElement(insertionPoint4, "FontWithFeaturesTTF", "titl", "a"); 152 addElement(insertionPoint4, "FontWithFeaturesTTF", "lnum", "c"); 153 addElement(insertionPoint4, "FontWithFeaturesTTF", "onum", "d"); 154 addElement(insertionPoint4, "FontWithFeaturesTTF", "pnum", "f"); 155 addElement(insertionPoint4, "FontWithFeaturesTTF", "tnum", "g"); 156 addElement(insertionPoint4, "FontWithFeaturesTTF", "frac", "i"); 157 addElement(insertionPoint4, "FontWithFeaturesTTF", "afrc", "j"); 158 addElement(insertionPoint4, "FontWithFeaturesTTF", "ordn", "Q"); 159 addElement(insertionPoint4, "FontWithFeaturesTTF", "zero", "k"); 160 addElement(insertionPoint4, "FontWithFeaturesTTF", "hist", "K"); 161 addElement(insertionPoint4, "FontWithFeaturesTTF", "jp78", "m"); 162 addElement(insertionPoint4, "FontWithFeaturesTTF", "jp83", "n"); 163 addElement(insertionPoint4, "FontWithFeaturesTTF", "jp90", "o"); 164 addElement(insertionPoint4, "FontWithFeaturesTTF", "jp04", "p"); 165 addElement(insertionPoint4, "FontWithFeaturesTTF", "smpl", "q"); 166 addElement(insertionPoint4, "FontWithFeaturesTTF", "trad", "r"); 167 addElement(insertionPoint4, "FontWithFeaturesTTF", "fwid", "t"); 168 addElement(insertionPoint4, "FontWithFeaturesTTF", "pwid", "u"); 169 addElement(insertionPoint4, "FontWithFeaturesTTF", "ruby", "v"); 33 170 </script> 34 </head>35 <body onload="setTimeout(test, 300)">36 <p>Test for font-feature-settings property. The first word of the following three words should be displayed like "WebKit", while others should be displayed as black boxes.</p>37 <div class="dligOn">WebKit</div>38 <div class="dligOff">WebKit</div>39 <div class="dligNone">WebKit</div>40 171 </body> 172 </html> -
trunk/LayoutTests/platform/efl/TestExpectations
r190609 r190848 78 78 79 79 # Need to implement font feature seeting for EFL port since r188146. 80 css3/font-feature-settings-preinstalled-fonts.html [ Skip ] 81 css3/font-feature-settings-rendering-2.html [ Skip ] 80 css3/font-feature-settings-rendering.html [ Skip ] 82 81 83 82 # ---------------------------------------- -
trunk/LayoutTests/platform/mac/TestExpectations
r190802 r190848 259 259 fast/css/draggable-region-parser.html 260 260 261 # Font feature settings is not implemented. 262 css3/font-feature-settings-rendering.html 263 264 webkit.org/b/149246 [ Mavericks ] css3/font-feature-settings-rendering-2.html 265 webkit.org/b/149246 [ Mavericks ] css3/font-variant-all-webfont.html 266 webkit.org/b/149246 [ Mavericks ] css3/font-variant-parsing.html 261 webkit.org/b/149246 [ Mavericks Yosemite ] css3/font-feature-settings-rendering.html [ ImageOnlyFailure ] 262 webkit.org/b/149246 [ Mavericks Yosemite ] css3/font-variant-all.html [ ImageOnlyFailure ] 267 263 268 264 # This feature is disabled on Mavericks. -
trunk/LayoutTests/platform/win/TestExpectations
r190657 r190848 473 473 # Font feature settings is not implemented. 474 474 css3/font-feature-settings-rendering.html [ Skip ] 475 css3/font-feature-settings-rendering-2.html [ Skip ]476 475 477 476 # TODO HiDPI tests require test infrastructure enhancements (e.g. testRunner.setBackingScaleFactor) … … 637 636 638 637 # font-variant-* not implemented on Windows 639 webkit.org/b/149630 css3/font-variant-all -webfont.html [ ImageOnlyFailure ]638 webkit.org/b/149630 css3/font-variant-all.html [ ImageOnlyFailure ] 640 639 641 640 ################################################################################ -
trunk/Tools/ChangeLog
r190846 r190848 1 2015-10-11 Myles C. Maxfield <mmaxfield@apple.com> 2 3 Test font-variant-* and font-feature-settings with mocked preinstalled fonts 4 https://bugs.webkit.org/show_bug.cgi?id=149777 5 6 Reviewed by Simon Fraser. 7 8 Include FontWithFeatures in DumpRenderTree and WebKitTestRunner. Add it 9 to the list of tests to preinstall at startup time. 10 11 Also, update the generation of the 'name' table in the FontWithFeatures font. 12 13 * DumpRenderTree/mac/DumpRenderTree.mm: 14 (allowedFontFamilySet): 15 (activateTestingFonts): 16 (activateFontsIOS): 17 * FontWithFeatures/FontWithFeatures/FontCreator.cpp: 18 (Generator::generate): 19 (Generator::appendCFFTable): 20 (Generator::appendNameSubtable): 21 (Generator::appendNAMETable): 22 * FontWithFeatures/FontWithFeatures/main.cpp: 23 (main): 24 * WebKitTestRunner/InjectedBundle/cocoa/ActivateFontsCocoa.mm: 25 (WTR::allowedFontFamilySet): 26 (WTR::activateFonts): 27 * WebKitTestRunner/mac/TestControllerMac.mm: 28 (WTR::allowedFontFamilySet): 29 1 30 2015-10-11 Jinyoung Hur <hur.ims@navercorp.com> 2 31 -
trunk/Tools/DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj
r190415 r190848 129 129 C0E720751281C828004EF533 /* EvaluateJSAfterRemovingPluginElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C0E720741281C828004EF533 /* EvaluateJSAfterRemovingPluginElement.cpp */; }; 130 130 C0EC3C9C12787F0500939164 /* NullNPPGetValuePointer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C0EC3C9B12787F0500939164 /* NullNPPGetValuePointer.cpp */; }; 131 C23EA2081BC9F05100C980B7 /* FontWithFeatures.otf in Copy Font Files */ = {isa = PBXBuildFile; fileRef = C23EA2061BC9EABA00C980B7 /* FontWithFeatures.otf */; }; 132 C23EA2091BC9F05100C980B7 /* FontWithFeatures.ttf in Copy Font Files */ = {isa = PBXBuildFile; fileRef = C23EA2071BC9EABA00C980B7 /* FontWithFeatures.ttf */; }; 131 133 E1B7816511AF31B7007E1BC2 /* MockGeolocationProvider.mm in Sources */ = {isa = PBXBuildFile; fileRef = E1B7808711AF1669007E1BC2 /* MockGeolocationProvider.mm */; }; 132 134 /* End PBXBuildFile section */ … … 191 193 dstSubfolderSpec = 7; 192 194 files = ( 195 C23EA2081BC9F05100C980B7 /* FontWithFeatures.otf in Copy Font Files */, 196 C23EA2091BC9F05100C980B7 /* FontWithFeatures.ttf in Copy Font Files */, 193 197 5DB9AC970F722C3600684641 /* AHEM____.TTF in Copy Font Files */, 194 198 5DB9AC980F722C3600684641 /* WebKitWeightWatcher100.ttf in Copy Font Files */, … … 371 375 C0E720741281C828004EF533 /* EvaluateJSAfterRemovingPluginElement.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = EvaluateJSAfterRemovingPluginElement.cpp; sourceTree = "<group>"; }; 372 376 C0EC3C9B12787F0500939164 /* NullNPPGetValuePointer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = NullNPPGetValuePointer.cpp; sourceTree = "<group>"; }; 377 C23EA2061BC9EABA00C980B7 /* FontWithFeatures.otf */ = {isa = PBXFileReference; lastKnownFileType = file; name = FontWithFeatures.otf; path = fonts/FontWithFeatures.otf; sourceTree = "<group>"; }; 378 C23EA2071BC9EABA00C980B7 /* FontWithFeatures.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; name = FontWithFeatures.ttf; path = fonts/FontWithFeatures.ttf; sourceTree = "<group>"; }; 373 379 E1B7808511AF1643007E1BC2 /* MockGeolocationProvider.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = MockGeolocationProvider.h; path = mac/MockGeolocationProvider.h; sourceTree = "<group>"; }; 374 380 E1B7808711AF1669007E1BC2 /* MockGeolocationProvider.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = MockGeolocationProvider.mm; path = mac/MockGeolocationProvider.mm; sourceTree = "<group>"; }; … … 627 633 375F09780DAC3CB600C8B4E5 /* WebKitWeightWatcher800.ttf */, 628 634 375F09790DAC3CB600C8B4E5 /* WebKitWeightWatcher900.ttf */, 635 C23EA2061BC9EABA00C980B7 /* FontWithFeatures.otf */, 636 C23EA2071BC9EABA00C980B7 /* FontWithFeatures.ttf */, 629 637 ); 630 638 name = Resources; -
trunk/Tools/DumpRenderTree/mac/Configurations/DumpRenderTreeApp.xcconfig
r188566 r190848 26 26 #include "BaseTarget.xcconfig" 27 27 28 OTHER_LDFLAGS_FONTS = -sectcreate __DATA Ahem fonts/AHEM____.TTF -sectcreate __DATA WeightWatcher100 fonts/WebKitWeightWatcher100.ttf -sectcreate __DATA WeightWatcher200 fonts/WebKitWeightWatcher200.ttf -sectcreate __DATA WeightWatcher300 fonts/WebKitWeightWatcher300.ttf -sectcreate __DATA WeightWatcher400 fonts/WebKitWeightWatcher400.ttf -sectcreate __DATA WeightWatcher500 fonts/WebKitWeightWatcher500.ttf -sectcreate __DATA WeightWatcher600 fonts/WebKitWeightWatcher600.ttf -sectcreate __DATA WeightWatcher700 fonts/WebKitWeightWatcher700.ttf -sectcreate __DATA WeightWatcher800 fonts/WebKitWeightWatcher800.ttf -sectcreate __DATA WeightWatcher900 fonts/WebKitWeightWatcher900.ttf ;28 OTHER_LDFLAGS_FONTS = -sectcreate __DATA Ahem fonts/AHEM____.TTF -sectcreate __DATA WeightWatcher100 fonts/WebKitWeightWatcher100.ttf -sectcreate __DATA WeightWatcher200 fonts/WebKitWeightWatcher200.ttf -sectcreate __DATA WeightWatcher300 fonts/WebKitWeightWatcher300.ttf -sectcreate __DATA WeightWatcher400 fonts/WebKitWeightWatcher400.ttf -sectcreate __DATA WeightWatcher500 fonts/WebKitWeightWatcher500.ttf -sectcreate __DATA WeightWatcher600 fonts/WebKitWeightWatcher600.ttf -sectcreate __DATA WeightWatcher700 fonts/WebKitWeightWatcher700.ttf -sectcreate __DATA WeightWatcher800 fonts/WebKitWeightWatcher800.ttf -sectcreate __DATA WeightWatcher900 fonts/WebKitWeightWatcher900.ttf -sectcreate __DATA FontWithFeaturesTTF fonts/FontWithFeatures.ttf -sectcreate __DATA FontWithFeaturesOTF fonts/FontWithFeatures.otf; 29 29 30 30 OTHER_LDFLAGS = $(PLATFORM_OTHER_LDFLAGS) $(ASAN_OTHER_LDFLAGS); -
trunk/Tools/DumpRenderTree/mac/DumpRenderTree.mm
r190578 r190848 411 411 @"Webdings", 412 412 @"WebKit WeightWatcher", 413 @"FontWithFeaturesOTF", 414 @"FontWithFeaturesTTF", 413 415 @"Wingdings 2", 414 416 @"Wingdings 3", … … 559 561 "WebKitWeightWatcher800.ttf", 560 562 "WebKitWeightWatcher900.ttf", 563 "FontWithFeatures.ttf", 564 "FontWithFeatures.otf", 561 565 0 562 566 }; … … 629 633 fontData(WeightWatcher800); 630 634 fontData(WeightWatcher900); 635 fontData(FontWithFeaturesTTF); 636 fontData(FontWithFeaturesOTF); 631 637 } 632 638 #endif // !PLATFORM(IOS) -
trunk/Tools/FontWithFeatures/FontWithFeatures/FontCreator.cpp
r190697 r190848 296 296 std::vector<uint8_t> generate(Type type) 297 297 { 298 if (type == Type::OpenType) 299 name = "FontWithFeaturesOTF"; 300 else 301 name = "FontWithFeaturesTTF"; 302 298 303 featureDescription = generateFeatureDescription(); 299 304 … … 573 578 574 579 // Name INDEX 575 std::string fontName = "MylesFont";580 std::string fontName = name; 576 581 append16(1); // INDEX contains 1 element 577 582 result.push_back(4); // Offsets in this INDEX are 4 bytes long … … 1083 1088 append16(3); // Unicode version 2.0 or later 1084 1089 append16(0); // Language 1085 append16( m_baseStringIndex +nameIdentifier); // Name identifier1086 append16(s.length() );1090 append16(nameIdentifier); // Name identifier 1091 append16(s.length() * 2); // Code units get 2 bytes each 1087 1092 append16(m_nameOffset); // Offset into name data 1088 1093 m_nameOffset += s.size() * 2; // Code units get 2 bytes each … … 1097 1102 void appendNAMETable() 1098 1103 { 1099 std::string familyName = "MylesFont"; // 1: Font Family 1100 1101 uint16_t numberOfRecords = m_stringIndex + 1; 1104 std::string familyName = name; // 1: Font Family 1105 std::string version = "1.0"; 1106 1107 uint16_t numberOfRecords = m_stringIndex + 6; 1102 1108 append16(0); // Format selector 1103 1109 append16(numberOfRecords); // Number of name records in table 1104 1110 append16(6 + 12 * numberOfRecords); // Offset in bytes to the beginning of name character strings 1105 1111 1106 appendNameSubtable(familyName, 1); // 1: Font Family 1112 appendNameSubtable(familyName, 1); // 1: Font Family. 1113 appendNameSubtable(familyName, 2); // 2: Font Subfamily. 1114 appendNameSubtable(familyName, 3); // 3: Unique subfamily identification. 1115 appendNameSubtable(familyName, 4); // 4: Full name of the font. 1116 appendNameSubtable(version, 5); // 5: Version of the name table. 1117 appendNameSubtable(familyName, 6); // 6: PostScript name of the font. 1107 1118 for (FeatureType& type : featureDescription) { 1108 appendNameSubtable(type.name, type.stringIndex);1119 appendNameSubtable(type.name, m_baseStringIndex + type.stringIndex); 1109 1120 for (FeatureSelector& selector : type.selectors) 1110 appendNameSubtable(selector.name, selector.stringIndex); 1111 } 1112 1121 appendNameSubtable(selector.name, m_baseStringIndex + selector.stringIndex); 1122 } 1123 1124 append2ByteASCIIString(familyName); 1125 append2ByteASCIIString(familyName); 1126 append2ByteASCIIString(familyName); 1127 append2ByteASCIIString(familyName); 1128 append2ByteASCIIString(version); 1113 1129 append2ByteASCIIString(familyName); 1114 1130 for (FeatureType& type : featureDescription) { … … 1172 1188 std::vector<FeatureType> featureDescription; 1173 1189 std::vector<uint8_t> result; 1190 std::string name; 1174 1191 }; 1175 1192 -
trunk/Tools/FontWithFeatures/FontWithFeatures/main.cpp
r190697 r190848 127 127 Type type = Type::TrueType; 128 128 const std::vector<uint8_t> fontVector = generateFont(type); 129 std::ofstream outputFile("/Volumes/Data/home/mmaxfield/ tmp/output.ttf", std::ios::out | std::ios::binary);129 std::ofstream outputFile("/Volumes/Data/home/mmaxfield/src/WebKit/OpenSource/LayoutTests/css3/resources/FontWithFeatures.ttf", std::ios::out | std::ios::binary); 130 130 for (uint8_t b : fontVector) 131 131 outputFile << b; -
trunk/Tools/WebKitTestRunner/InjectedBundle/cocoa/ActivateFontsCocoa.mm
r188566 r190848 161 161 @"Webdings", 162 162 @"WebKit WeightWatcher", 163 @"FontWithFeaturesOTF", 164 @"FontWithFeaturesTTF", 163 165 @"Wingdings 2", 164 166 @"Wingdings 3", … … 300 302 "WebKitWeightWatcher800.ttf", 301 303 "WebKitWeightWatcher900.ttf", 304 "FontWithFeatures.otf", 305 "FontWithFeatures.ttf", 302 306 0 303 307 }; -
trunk/Tools/WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj
r190368 r190848 48 48 0FEB90A51905C016000FDBF3 /* CrashReporterInfo.mm in Sources */ = {isa = PBXBuildFile; fileRef = 0FEB90A31905BC6A000FDBF3 /* CrashReporterInfo.mm */; }; 49 49 0FEBF85A1BB61DF20028722D /* HIDEventGenerator.mm in Sources */ = {isa = PBXBuildFile; fileRef = 0FEBF8591BB61DF20028722D /* HIDEventGenerator.mm */; settings = {ASSET_TAGS = (); }; }; 50 1CA211C91BCA107300B2101F /* FontWithFeatures.otf in Resources */ = {isa = PBXBuildFile; fileRef = 1CA211C71BCA107300B2101F /* FontWithFeatures.otf */; }; 51 1CA211CA1BCA107300B2101F /* FontWithFeatures.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 1CA211C81BCA107300B2101F /* FontWithFeatures.ttf */; }; 50 52 29210EAE144CACB700835BB5 /* AccessibilityUIElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29210EA9144CACB200835BB5 /* AccessibilityUIElement.cpp */; }; 51 53 29210EB0144CACBD00835BB5 /* AccessibilityController.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29210EA2144CAAA500835BB5 /* AccessibilityController.cpp */; }; … … 196 198 0FEBF85C1BB62D460028722D /* UIKitSPI.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = UIKitSPI.h; sourceTree = "<group>"; }; 197 199 1A3326051B75396500F89F62 /* TestOptions.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TestOptions.h; sourceTree = "<group>"; }; 200 1CA211C71BCA107300B2101F /* FontWithFeatures.otf */ = {isa = PBXFileReference; lastKnownFileType = file; path = FontWithFeatures.otf; sourceTree = "<group>"; }; 201 1CA211C81BCA107300B2101F /* FontWithFeatures.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = FontWithFeatures.ttf; sourceTree = "<group>"; }; 198 202 26D758E5160BECDC00268472 /* GeolocationProviderMock.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GeolocationProviderMock.cpp; sourceTree = "<group>"; }; 199 203 26D758E6160BECDD00268472 /* GeolocationProviderMock.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GeolocationProviderMock.h; sourceTree = "<group>"; }; … … 644 648 6510A78011EC643800410867 /* WebKitWeightWatcher800.ttf */, 645 649 6510A78111EC643800410867 /* WebKitWeightWatcher900.ttf */, 650 1CA211C71BCA107300B2101F /* FontWithFeatures.otf */, 651 1CA211C81BCA107300B2101F /* FontWithFeatures.ttf */, 646 652 ); 647 653 name = Resources; … … 885 891 6510A78211EC643800410867 /* AHEM____.TTF in Resources */, 886 892 6510A78411EC643800410867 /* WebKitWeightWatcher100.ttf in Resources */, 893 1CA211CA1BCA107300B2101F /* FontWithFeatures.ttf in Resources */, 887 894 6510A78511EC643800410867 /* WebKitWeightWatcher200.ttf in Resources */, 888 895 6510A78611EC643800410867 /* WebKitWeightWatcher300.ttf in Resources */, … … 892 899 6510A78A11EC643800410867 /* WebKitWeightWatcher700.ttf in Resources */, 893 900 6510A78B11EC643800410867 /* WebKitWeightWatcher800.ttf in Resources */, 901 1CA211C91BCA107300B2101F /* FontWithFeatures.otf in Resources */, 894 902 6510A78C11EC643800410867 /* WebKitWeightWatcher900.ttf in Resources */, 895 903 ); -
trunk/Tools/WebKitTestRunner/mac/TestControllerMac.mm
r190510 r190848 247 247 @"Webdings", 248 248 @"WebKit WeightWatcher", 249 @"FontWithFeaturesOTF", 250 @"FontWithFeaturesTTF", 249 251 @"Wingdings 2", 250 252 @"Wingdings 3",
Note: See TracChangeset
for help on using the changeset viewer.