Commit dc076a38 authored by bashi@chromium.org's avatar bashi@chromium.org

Update font for unicode-variation-selector.html

OTS rejects gw432047.ttf because the font is broken. We should not use
it. Instead, use a variant of the Ahem-font which has a variation
selector for 'a'. When a variation selector U+E0100 follows 'a', the
glyph for 'a' should be the same glyph as 'p' (which is a 0.2em height
rectangle) on platforms which support IVS (Note that we don't support
IVS yet on some platforms).

I use a script[1] to create this font.

[1] https://gist.github.com/bashi/1048e2e84394723fdc65

BUG=461128

Review URL: https://codereview.chromium.org/954603003

git-svn-id: svn://svn.chromium.org/blink/trunk@190743 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent bbe8b554
...@@ -1875,3 +1875,7 @@ crbug.com/461042 [ Debug ] inspector/sources/debugger/live-edit-no-reveal.html [ ...@@ -1875,3 +1875,7 @@ crbug.com/461042 [ Debug ] inspector/sources/debugger/live-edit-no-reveal.html [
# These need a manual rebaseline after crbug.com/461107 # These need a manual rebaseline after crbug.com/461107
crbug.com/461107 [ Linux Mac Android ] virtual/gpu/fast/canvas/canvas-composite-video.html [ NeedsManualRebaseline ] crbug.com/461107 [ Linux Mac Android ] virtual/gpu/fast/canvas/canvas-composite-video.html [ NeedsManualRebaseline ]
crbug.com/461128 fast/loader/resource-request-callbacks.html [ NeedsRebaseline ]
crbug.com/461128 fast/text/unicode-variation-selector.html [ NeedsRebaseline ]
crbug.com/461128 virtual/antialiasedtext/fast/text/unicode-variation-selector.html [ NeedsRebaseline ]
crbug.com/461128 virtual/slimmingpaint/fast/text/unicode-variation-selector.html [ NeedsRebaseline ]
...@@ -50,7 +50,7 @@ body ...@@ -50,7 +50,7 @@ body
@font-face @font-face
{ {
font-family: custom_font; font-family: custom_font;
src: url("../text/resources/gw432047.ttf"); src: url("../../resources/Ahem.ttf");
} }
p p
{ {
......
<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>
*データ及び記事のライセンス
グリフウィキに登録されているグリフデータおよび記事は、誰もが自由に利用できることとします。複製、改変などの二次利用を認めるものとします。著作者表示も特に制限を設けません。新しいフォントのベースデータとして用いることや、そのままコピーしたものをフォントとして著作物とすることを妨げません。記事中に引用されている部分については、グリフウィキには著作権はありませんので引用元のライセンスを確認してください。
<style> <style>
@font-face { @font-face {
font-family: ivsfont; font-family: ivsfont;
src: url(resources/gw432047.ttf); src: url(resources/AhemIVS.ttf);
} }
.ivs { .ivs {
font-family: ivsfont; font-family: ivsfont;
} }
</style> </style>
<p> <p>
This page ensures that WebKit can render unicode variation selector correctly. On platforms which support UVSes, the glyphs of U+845B should be different. On platforms which don't support UVSes, they should be identical. In addition, any glyphs (including the last resort glyph) should not appear after the U+845B on all platforms. This page ensures that WebKit can render unicode variation selector correctly. On platforms which support UVSes, the glyph of U+0061 should be a 0.2em high, 1em wide rectangle. On platforms which don't support UVSes, it should be a square. In addition, any glyphs (including the last resort glyph) should not appear after the glyph on all platforms.
</p> </p>
<div> <div>
Glyph for code point U+845B without UVS: Glyph for code point U+0061 without UVS:
<span style="font-family: ivsfont;">&#x845b;</span> <span style="font-family: ivsfont;">&#x0061;</span>
</div> </div>
<div> <div>
Glyph for code point U+845B with UVS: Glyph for code point U+0061 with UVS:
<span style="font-family: ivsfont;" id='ivs-holder'>&#x845b;&#xE0100;</span> <span style="font-family: ivsfont;" id='ivs-holder'>&#x0061;&#xE0100;</span>
</div> </div>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment