Title: [130570] trunk
- Revision
- 130570
- Author
- [email protected]
- Date
- 2012-10-05 17:38:16 -0700 (Fri, 05 Oct 2012)
Log Message
OpenTypeVerticalData issue with DroidSansFallback.ttf on chromium-android and chromium-linux
https://bugs.webkit.org/show_bug.cgi?id=97824
Reviewed by Tony Chang.
Source/WebCore:
The issue occurred when a font that contains vert GSUB table but doesn't have
a DFLT script and the first script doesn't have vert feature. Added logic to
handle the case.
Test: fast/writing-mode/vertical-subst-font-vert-no-dflt.html
* platform/graphics/opentype/OpenTypeVerticalData.cpp:
(FeatureList):
(WebCore::OpenType::FeatureList::findFeature): Added to find the matching feature in FeatureList.
(WebCore::OpenType::GSUBTable::feature): Added logic to handle the case of no DFLT script and no vert feature under the first script.
LayoutTests:
Ref test for the change. The punctuations in the vertical text are expected to
be substituted with the corresponding vertical forms.
* fast/writing-mode/vertical-subst-font-vert-no-dflt-expected.html: Added.
* fast/writing-mode/vertical-subst-font-vert-no-dflt.html: Added.
* platform/mac/TestExpectations: Added the new test as it fails on Mac because of https://bugs.webkit.org/show_bug.cgi?id=98560.
Modified Paths
Added Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (130569 => 130570)
--- trunk/LayoutTests/ChangeLog 2012-10-05 23:57:14 UTC (rev 130569)
+++ trunk/LayoutTests/ChangeLog 2012-10-06 00:38:16 UTC (rev 130570)
@@ -1,3 +1,17 @@
+2012-10-05 Xianzhu Wang <[email protected]>
+
+ OpenTypeVerticalData issue with DroidSansFallback.ttf on chromium-android and chromium-linux
+ https://bugs.webkit.org/show_bug.cgi?id=97824
+
+ Reviewed by Tony Chang.
+
+ Ref test for the change. The punctuations in the vertical text are expected to
+ be substituted with the corresponding vertical forms.
+
+ * fast/writing-mode/vertical-subst-font-vert-no-dflt-expected.html: Added.
+ * fast/writing-mode/vertical-subst-font-vert-no-dflt.html: Added.
+ * platform/mac/TestExpectations: Added the new test as it fails on Mac because of https://bugs.webkit.org/show_bug.cgi?id=98560.
+
2012-10-05 Tony Chang <[email protected]>
Form controls should always be horizontal
Modified: trunk/LayoutTests/fast/writing-mode/resources/DroidSansFallback-reduced.ttf (130569 => 130570)
--- trunk/LayoutTests/fast/writing-mode/resources/DroidSansFallback-reduced.ttf 2012-10-05 23:57:14 UTC (rev 130569)
+++ trunk/LayoutTests/fast/writing-mode/resources/DroidSansFallback-reduced.ttf 2012-10-06 00:38:16 UTC (rev 130570)
@@ -1,7 +1,7 @@
- \x80DSIG ܼ FFTMYb* \xE7\xAC GDEF
-\xCC # \xDC\xC4 (GPOS\xA8\xF5\xAF\xC2 ݰ \xFCGSUB\xDD\xF0 \xDC\xEC \xC4OS/2]\xF7Q `PfEd\xCF9\xA9: \xE7\xC8 \xE4cmapT=u| 8\xDC cvt T\xFC fpgm\xB0!Y\xB0 T\xE0 gasp ܰ glyf\xE2K \x8Bx \xAC(head\xFBdN<