Title: [102915] trunk
- Revision
- 102915
- Author
- [email protected]
- Date
- 2011-12-15 03:57:05 -0800 (Thu, 15 Dec 2011)
Log Message
Supports Unicode variation selector
https://bugs.webkit.org/show_bug.cgi?id=50999
Reviewed by Nikolas Zimmermann.
Source/WebCore:
Adds SimpleFontData::updateGlyphWithVariationSelector() which substitutes the
glyph in question based on the selector. WidthIterator::advance() calls it
when an unicode variation selector follows the character.
Test: fast/text/unicode-variation-selector.html
* platform/graphics/SimpleFontData.h: Added updateGlyphWithVariationSelector().
* platform/graphics/SurrogatePairAwareTextIterator.cpp:
(WebCore::isUnicodeBMPVariationSelector): Added.
(WebCore::isUnicodeSupplementaryVariationSelector): Added.
(WebCore::SurrogatePairAwareTextIterator::hasTrailingVariationSelector): Added.
* platform/graphics/SurrogatePairAwareTextIterator.h:
* platform/graphics/WidthIterator.cpp:
(WebCore::WidthIterator::advance): Changed to detect variation selectors.
* platform/graphics/chromium/SimpleFontDataChromiumWin.cpp:
(WebCore::SimpleFontData::updateGlyphWithVariationSelector): Added.
* platform/graphics/chromium/SimpleFontDataLinux.cpp:
(WebCore::SimpleFontData::updateGlyphWithVariationSelector): Ditto.
* platform/graphics/freetype/SimpleFontDataFreeType.cpp:
(WebCore::SimpleFontData::updateGlyphWithVariationSelector): Ditto.
* platform/graphics/mac/SimpleFontDataMac.mm:
(WebCore::decomposeToUTF16): Ditto.
(WebCore::SimpleFontData::updateGlyphWithVariationSelector): Ditto.
* platform/graphics/pango/SimpleFontDataPango.cpp:
(WebCore::SimpleFontData::updateGlyphWithVariationSelector): Ditto.
* platform/graphics/qt/SimpleFontDataQt.cpp:
(WebCore::SimpleFontData::updateGlyphWithVariationSelector): Ditto.
* platform/graphics/win/SimpleFontDataWin.cpp:
(WebCore::SimpleFontData::updateGlyphWithVariationSelector): Ditto.
* platform/graphics/wince/SimpleFontDataWinCE.cpp:
(WebCore::SimpleFontData::updateGlyphWithVariationSelector): Ditto.
* platform/graphics/wx/SimpleFontDataWx.cpp:
(WebCore::SimpleFontData::updateGlyphWithVariationSelector): Ditto.
LayoutTests:
Add test for unicode variation selector support.
A tiny font (gw432047.ttf), which comes from glyphwiki.org and is used by Mozilla, is added for the test.
* fast/text/resources/gw432047-license.txt: Added.
* fast/text/resources/gw432047.ttf: Added.
* fast/text/unicode-variation-selector.html: Added.
* platform/chromium/test_expectations.txt: Added fast/text/unicode-variation-selector.html. This test need rebaseline.
Modified Paths
Added Paths
Property Changed
Diff
Modified: trunk/LayoutTests/ChangeLog (102914 => 102915)
--- trunk/LayoutTests/ChangeLog 2011-12-15 11:44:03 UTC (rev 102914)
+++ trunk/LayoutTests/ChangeLog 2011-12-15 11:57:05 UTC (rev 102915)
@@ -1,3 +1,18 @@
+2011-12-15 Kenichi Ishibashi <[email protected]>
+
+ Supports Unicode variation selector
+ https://bugs.webkit.org/show_bug.cgi?id=50999
+
+ Reviewed by Nikolas Zimmermann.
+
+ Add test for unicode variation selector support.
+ A tiny font (gw432047.ttf), which comes from glyphwiki.org and is used by Mozilla, is added for the test.
+
+ * fast/text/resources/gw432047-license.txt: Added.
+ * fast/text/resources/gw432047.ttf: Added.
+ * fast/text/unicode-variation-selector.html: Added.
+ * platform/chromium/test_expectations.txt: Added fast/text/unicode-variation-selector.html. This test need rebaseline.
+
2011-12-15 Alexander Pavlov <[email protected]>
[v8] Expose the "filter" property in V8CSSStyleDeclaration
Property changes on: trunk/LayoutTests/ChangeLog
___________________________________________________________________
Deleted: svn:executable
Added: trunk/LayoutTests/fast/text/resources/gw432047-license.txt (0 => 102915)
--- trunk/LayoutTests/fast/text/resources/gw432047-license.txt (rev 0)
+++ trunk/LayoutTests/fast/text/resources/gw432047-license.txt 2011-12-15 11:57:05 UTC (rev 102915)
@@ -0,0 +1,11 @@
+<http://en.glyphwiki.org/wiki/GlyphWiki:License>
+'''This document is a direct translation of the October 8th, 2008 revision of the Japanese original at ([[GlyphWiki:データ・記事のライセンス]]). This translation is provided as a service, and should not be taken to be a definitive statement. Please be aware that in case the Japanese original and the English version differ, the Japanese original takes precedence.'''
+
+*Data and article usage licence
+
+The glyphs registered at the GlyphWiki, as well as the articles, can be freely used by anyone. Reuse of this data, such as reproduction or modification of the glyps, is permitted. The are no specific restrictions with regards to displaying the author's name. Reuse of GlyphWiki data as the basis for a new font, or direct usage of fonts and glyphs copied from GlyphWiki in published work is allowed. GlyphWiki does not hold copyright on any citations used throughout GlyphWiki articles. Please consult their respective licences when reusing such content.
+
+<http://glyphwiki.org/wiki/GlyphWiki:%E3%83%87%E3%83%BC%E3%82%BF%E3%83%BB%E8%A8%98%E4%BA%8B%E3%81%AE%E3%83%A9%E3%82%A4%E3%82%BB%E3%83%B3%E3%82%B9>
+*データ及び記事のライセンス
+
+グリフウィキに登録されているグリフデータおよび記事は、誰もが自由に利用できることとします。複製、改変などの二次利用を認めるものとします。著作者表示も特に制限を設けません。新しいフォントのベースデータとして用いることや、そのままコピーしたものをフォントとして著作物とすることを妨げません。記事中に引用されている部分については、グリフウィキには著作権はありませんので引用元のライセンスを確認してください。
Added: trunk/LayoutTests/fast/text/resources/gw432047.ttf (0 => 102915)
--- trunk/LayoutTests/fast/text/resources/gw432047.ttf (rev 0)
+++ trunk/LayoutTests/fast/text/resources/gw432047.ttf 2011-12-15 11:57:05 UTC (rev 102915)
@@ -0,0 +1,88 @@
+ FFTMO GDEF ' <