Changeset 152144 in webkit
- Timestamp:
- Jun 27, 2013 6:02:03 PM (11 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r152143 r152144 1 2013-06-26 Dean Jackson <dino@apple.com> 2 3 [Mac] Add Mavericks system font to Test systems 4 https://bugs.webkit.org/show_bug.cgi?id=118109 5 6 Reviewed by Simon Fraser. 7 8 OS X Mavericks uses a different font for system controls. Tell DRT and 9 WKTR about them otherwise they use a fallback font. Unfortunately the 10 fonts are hidden (not found in the list of available fonts) so I 11 had to add them manually. 12 13 Even though there is only one at the moment, I implemented this 14 as a set so it will be easier to add new fonts if necessary. 15 16 * DumpRenderTree/mac/DumpRenderTree.mm: 17 (allowedFontFamilySet): Fixed typo. 18 (systemHiddenFontFamilySet): New method that returns the system control font. 19 (drt_NSFontManager_availableFonts): Merge the hidden fonts. 20 * WebKitTestRunner/InjectedBundle/mac/ActivateFonts.mm: 21 (WTR::allowedFontFamilySet): Fixed typo. 22 (WTR::systemHiddenFontFamilySet): As above. 23 (WTR::wtr_NSFontManager_availableFonts): 24 1 25 2013-06-27 Anders Carlsson <andersca@apple.com> 2 26 -
trunk/Tools/DumpRenderTree/mac/DumpRenderTree.mm
r151954 r152144 237 237 static NSSet *allowedFontFamilySet() 238 238 { 239 static NSSet *fontFamil iySet = [[NSSet setWithObjects:239 static NSSet *fontFamilySet = [[NSSet setWithObjects: 240 240 @"Ahem", 241 241 @"Al Bayan", … … 356 356 nil] retain]; 357 357 358 return fontFamiliySet; 358 return fontFamilySet; 359 } 360 361 static NSSet *systemHiddenFontFamilySet() 362 { 363 static NSSet *fontFamilySet = [[NSSet setWithObjects: 364 @".LucidaGrandeUI", 365 nil] retain]; 366 367 return fontFamilySet; 359 368 } 360 369 … … 392 401 } 393 402 } 394 403 404 for (NSString *hiddenFontFamily in systemHiddenFontFamilySet()) { 405 [availableFontList addObject:hiddenFontFamily]; 406 } 407 395 408 availableFonts = availableFontList; 396 409 return availableFonts; -
trunk/Tools/WebKitTestRunner/InjectedBundle/mac/ActivateFonts.mm
r151954 r152144 43 43 static NSSet *allowedFontFamilySet() 44 44 { 45 static NSSet *fontFamil iySet = [[NSSet setWithObjects:45 static NSSet *fontFamilySet = [[NSSet setWithObjects: 46 46 @"Ahem", 47 47 @"Al Bayan", … … 162 162 nil] retain]; 163 163 164 return fontFamiliySet; 164 return fontFamilySet; 165 } 166 167 static NSSet *systemHiddenFontFamilySet() 168 { 169 static NSSet *fontFamilySet = [[NSSet setWithObjects: 170 @".LucidaGrandeUI", 171 nil] retain]; 172 173 return fontFamilySet; 165 174 } 166 175 … … 198 207 } 199 208 } 200 209 210 for (NSString *hiddenFontFamily in systemHiddenFontFamilySet()) { 211 [availableFontList addObject:hiddenFontFamily]; 212 } 213 201 214 availableFonts = availableFontList; 202 215 return availableFonts;
Note: See TracChangeset
for help on using the changeset viewer.