[iOS] Arabic text styled with Georgia is rendered as boxes
authormmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 22 Jun 2015 20:53:26 +0000 (20:53 +0000)
committermmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 22 Jun 2015 20:53:26 +0000 (20:53 +0000)
commit516bd3a4a425d9c0025dcea6c2e0c4a5bc07efe0
treeb5502ec95505041c82b18d1995e712db0e989b9a
parentd690b6d0c4a106ca3c8bece86bd35f7d098e2342
[iOS] Arabic text styled with Georgia is rendered as boxes
https://bugs.webkit.org/show_bug.cgi?id=145681
<rdar://problem/21169844>

Reviewed by Darin Adler.

Source/WebCore:

Georgia doesn't support Arabic, so we ask CoreText what font does support Arabic. It returns
TimesNewRomanPSMT. However, WebKit explicitly disallows this font on iOS. Therefore, instead
of using TimesNewRomanPSMT, we will simply just use GeezaPro.

Test: fast/text/arabic-times-new-roman.html

* platform/graphics/ios/FontCacheIOS.mm:
(WebCore::FontCache::systemFallbackForCharacters):
* platform/graphics/Font.h: Let FontCacheIOS call fontFamilyShouldNotBeUsedForArabic()
* platform/graphics/cocoa/FontCocoa.mm:
(WebCore::fontFamilyShouldNotBeUsedForArabic):

LayoutTests:

* fast/text/arabic-times-new-roman.html: Added.
* platform/ios-simulator/fast/text/arabic-times-new-roman-expected.txt: Added.
* platform/ios-simulator/fast/text/arabic-times-new-roman-expected.png: Added.
* platform/mac-mavericks/fast/text/arabic-times-new-roman-expected.txt: Added.
* platform/mac/fast/text/arabic-times-new-roman-expected.txt: Added.
* platform/mac/fast/text/arabic-times-new-roman-expected.png: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@185842 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/text/arabic-times-new-roman.html [new file with mode: 0644]
LayoutTests/platform/ios-simulator/fast/text/arabic-times-new-roman-expected.png [new file with mode: 0644]
LayoutTests/platform/ios-simulator/fast/text/arabic-times-new-roman-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac-mavericks/fast/text/arabic-times-new-roman-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/fast/text/arabic-times-new-roman-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/fast/text/arabic-times-new-roman-expected.txt [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/Font.h
Source/WebCore/platform/graphics/cocoa/FontCocoa.mm
Source/WebCore/platform/graphics/ios/FontCacheIOS.mm