Title: [178942] branches/safari-600.5-branch
- Revision
- 178942
- Author
- matthew_han...@apple.com
- Date
- 2015-01-22 14:02:24 -0800 (Thu, 22 Jan 2015)
Log Message
Merge r177292. rdar://problem/19452139
Modified Paths
Added Paths
Diff
Modified: branches/safari-600.5-branch/LayoutTests/ChangeLog (178941 => 178942)
--- branches/safari-600.5-branch/LayoutTests/ChangeLog 2015-01-22 22:02:15 UTC (rev 178941)
+++ branches/safari-600.5-branch/LayoutTests/ChangeLog 2015-01-22 22:02:24 UTC (rev 178942)
@@ -1,5 +1,19 @@
2015-01-22 Matthew Hanson <matthew_han...@apple.com>
+ Merge r177292. rdar://problem/19452139
+
+ 2014-12-15 Myles C. Maxfield <mmaxfi...@apple.com>
+
+ [iOS] Codepoints not associated with languages are drawn as boxes
+ https://bugs.webkit.org/show_bug.cgi?id=138906
+
+ Reviewed by Darin Adler.
+
+ * platform/ios-simulator/fast/text/non-language-font-fallback-expected.html: Added.
+ * platform/ios-simulator/fast/text/non-language-font-fallback.html: Added.
+
+2015-01-22 Matthew Hanson <matthew_han...@apple.com>
+
Merge r177033. rdar://problem/19451244
2014-12-09 Chris Dumez <cdu...@apple.com>
Added: branches/safari-600.5-branch/LayoutTests/platform/ios-simulator/fast/text/non-language-font-fallback-expected.html (0 => 178942)
--- branches/safari-600.5-branch/LayoutTests/platform/ios-simulator/fast/text/non-language-font-fallback-expected.html (rev 0)
+++ branches/safari-600.5-branch/LayoutTests/platform/ios-simulator/fast/text/non-language-font-fallback-expected.html 2015-01-22 22:02:24 UTC (rev 178942)
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<html>
+<head>
+</head>
+<body>
+This test makes sure that glyphs not associated with a particular language have an appropriate font chosen for them.
+<div style="font-size: 256px; font-family: Menlo-Regular;">☚</div>
+</body>
+</html>
Added: branches/safari-600.5-branch/LayoutTests/platform/ios-simulator/fast/text/non-language-font-fallback.html (0 => 178942)
--- branches/safari-600.5-branch/LayoutTests/platform/ios-simulator/fast/text/non-language-font-fallback.html (rev 0)
+++ branches/safari-600.5-branch/LayoutTests/platform/ios-simulator/fast/text/non-language-font-fallback.html 2015-01-22 22:02:24 UTC (rev 178942)
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<html>
+<head>
+</head>
+<body>
+This test makes sure that glyphs not associated with a particular language have an appropriate font chosen for them.
+<div style="font-size: 256px;">☚</div>
+</body>
+</html>
Modified: branches/safari-600.5-branch/Source/WebCore/ChangeLog (178941 => 178942)
--- branches/safari-600.5-branch/Source/WebCore/ChangeLog 2015-01-22 22:02:15 UTC (rev 178941)
+++ branches/safari-600.5-branch/Source/WebCore/ChangeLog 2015-01-22 22:02:24 UTC (rev 178942)
@@ -1,5 +1,25 @@
2015-01-22 Matthew Hanson <matthew_han...@apple.com>
+ Merge r177292. rdar://problem/19452139
+
+ 2014-12-15 Myles C. Maxfield <mmaxfi...@apple.com>
+
+ [iOS] Codepoints not associated with languages are drawn as boxes
+ https://bugs.webkit.org/show_bug.cgi?id=138906
+
+ Reviewed by Darin Adler.
+
+ Use SPI CTFontCreateForCharacters(), but only if we don't already know what to do
+ with the characters.
+
+ Test: platform/ios-simulator/fast/text/non-language-font-fallback.html
+
+ * platform/graphics/ios/FontCacheIOS.mm:
+ (WebCore::FontCache::systemFallbackForCharacters):
+ * platform/spi/cocoa/CoreTextSPI.h:
+
+2015-01-22 Matthew Hanson <matthew_han...@apple.com>
+
Merge r177152. rdar://problem/19451288
2014-12-11 Alexey Proskuryakov <a...@apple.com>
Modified: branches/safari-600.5-branch/Source/WebCore/platform/graphics/ios/FontCacheIOS.mm (178941 => 178942)
--- branches/safari-600.5-branch/Source/WebCore/platform/graphics/ios/FontCacheIOS.mm 2015-01-22 22:02:15 UTC (rev 178941)
+++ branches/safari-600.5-branch/Source/WebCore/platform/graphics/ios/FontCacheIOS.mm 2015-01-22 22:02:24 UTC (rev 178942)
@@ -429,6 +429,11 @@
}
if (useEmojiFont)
simpleFontData = getCachedFontData(description, appleColorEmoji, false, DoNotRetain);
+ else {
+ RetainPtr<CTFontRef> fallbackFont = adoptCF(CTFontCreateForCharacters(originalFontData->getCTFont(), characters, length, nullptr));
+ if (RetainPtr<CFStringRef> foundFontName = adoptCF(CTFontCopyPostScriptName(fallbackFont.get())))
+ simpleFontData = getCachedFontData(description, foundFontName.get(), false, DoNotRetain);
+ }
break;
}
}
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes