mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-02 22:37:50 +00:00
Bug 761442 - additional reftests for space lookups. r=jkew
This commit is contained in:
parent
4fd9de13e1
commit
0ad45414c1
@ -1,41 +0,0 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>ligature-across-space test</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<style type="text/css">
|
||||
@font-face {
|
||||
font-family: ligsym;
|
||||
src: url(../fonts/LigatureSymbolsWithSpaces.woff);
|
||||
}
|
||||
|
||||
td {
|
||||
padding: 10px 5px;
|
||||
}
|
||||
|
||||
.test {
|
||||
font-family: ligsym;
|
||||
font-size: 150%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<table>
|
||||
<tr><td>calendar</td><td class="test"></td></tr>
|
||||
<tr><td>daily calendar</td><td class="test">daily </td></tr>
|
||||
<tr><td>align left</td><td class="test">align </td></tr>
|
||||
<tr><td>align center</td><td class="test">align center</td></tr>
|
||||
<tr><td>align right</td><td class="test">align </td></tr>
|
||||
<tr><td>volume</td><td class="test"></td></tr>
|
||||
<tr><td>volume down</td><td class="test"> </td></tr>
|
||||
<tr><td>volume up</td><td class="test"> </td></tr>
|
||||
<tr><td>zoom in</td><td class="test"> </td></tr>
|
||||
<tr><td>zoom out</td><td class="test"> </td></tr>
|
||||
<tr><td>heart</td><td class="test"></td></tr>
|
||||
<tr><td>heart empty</td><td class="test"> empty</td></tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -1,41 +0,0 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>ligature-across-space test</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<style type="text/css">
|
||||
@font-face {
|
||||
font-family: ligsym;
|
||||
src: url(../fonts/LigatureSymbolsWithSpaces.woff);
|
||||
}
|
||||
|
||||
td {
|
||||
padding: 10px 5px;
|
||||
}
|
||||
|
||||
.test {
|
||||
font-family: ligsym;
|
||||
font-size: 150%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<table>
|
||||
<tr><td>calendar</td><td class="test">calendar</td></tr>
|
||||
<tr><td>daily calendar</td><td class="test">daily calendar</td></tr>
|
||||
<tr><td>align left</td><td class="test">align left</td></tr>
|
||||
<tr><td>align center</td><td class="test">align center</td></tr>
|
||||
<tr><td>align right</td><td class="test">align right</td></tr>
|
||||
<tr><td>volume</td><td class="test">volume</td></tr>
|
||||
<tr><td>volume down</td><td class="test">volume down</td></tr>
|
||||
<tr><td>volume up</td><td class="test">volume up</td></tr>
|
||||
<tr><td>zoom in</td><td class="test">zoom in</td></tr>
|
||||
<tr><td>zoom out</td><td class="test">zoom out</td></tr>
|
||||
<tr><td>heart</td><td class="test">heart</td></tr>
|
||||
<tr><td>heart empty</td><td class="test">heart empty</td></tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
37
layout/reftests/font-features/fwid-spaces-ref.html
Normal file
37
layout/reftests/font-features/fwid-spaces-ref.html
Normal file
@ -0,0 +1,37 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="ja">
|
||||
<head>
|
||||
<title>Full-width variations of regular spaces</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
body {
|
||||
margin: 5px;
|
||||
}
|
||||
|
||||
#test, #test pre {
|
||||
font: 150% Hiragino Kaku Gothic ProN, Meiryo, sans-serif;
|
||||
}
|
||||
|
||||
#test pre span {
|
||||
background-color: red;
|
||||
}
|
||||
|
||||
pre {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<p>Rows should all be the same length:</p>
|
||||
<div id="test">
|
||||
<pre><span> a b c A B C </span></pre>
|
||||
<pre><span> a b c A B C </span></pre>
|
||||
<pre><span>ba bA bb bB c</span></pre>
|
||||
<pre><span>ba bA bb bB c</span></pre>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
40
layout/reftests/font-features/fwid-spaces.html
Normal file
40
layout/reftests/font-features/fwid-spaces.html
Normal file
@ -0,0 +1,40 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="ja">
|
||||
<head>
|
||||
<title>Full-width variations of regular spaces</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
body {
|
||||
margin: 5px;
|
||||
}
|
||||
|
||||
#test, #test pre {
|
||||
font: 150% Hiragino Kaku Gothic ProN, Meiryo, sans-serif;
|
||||
-moz-font-feature-settings: "fwid" on;
|
||||
-webkit-font-feature-settings: "fwid" on;
|
||||
font-feature-settings: "fwid" on;
|
||||
}
|
||||
|
||||
#test pre span {
|
||||
background-color: red;
|
||||
}
|
||||
|
||||
pre {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<p>Rows should all be the same length:</p>
|
||||
<div id="test">
|
||||
<pre><span> a b c A B C </span></pre>
|
||||
<pre><span> a b c A B C </span></pre>
|
||||
<pre><span>ba bA bb bB c</span></pre>
|
||||
<pre><span>ba bA bb bB c</span></pre>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,37 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>kerning sanity checks</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
@font-face {
|
||||
font-family: LinuxLibertine;
|
||||
src: url(../fonts/LinLibertine_Re-4.7.5.woff);
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 5px;
|
||||
}
|
||||
|
||||
div#test, div#test pre {
|
||||
font-family: Arial, LinuxLibertine, sans-serif;
|
||||
font-size: 300%;
|
||||
line-height: 1.1em;
|
||||
/* font-feature-settings == default */
|
||||
}
|
||||
|
||||
pre {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="test">
|
||||
<pre><span>AWAY</span></pre>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
39
layout/reftests/font-features/kerning-sanity-check-kern.html
Normal file
39
layout/reftests/font-features/kerning-sanity-check-kern.html
Normal file
@ -0,0 +1,39 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>kerning sanity checks</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
@font-face {
|
||||
font-family: LinuxLibertine;
|
||||
src: url(../fonts/LinLibertine_Re-4.7.5.woff);
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 5px;
|
||||
}
|
||||
|
||||
div#test, div#test pre {
|
||||
font-family: Arial, LinuxLibertine, sans-serif;
|
||||
font-size: 300%;
|
||||
line-height: 1.1em;
|
||||
-moz-font-feature-settings: "kern" on;
|
||||
-webkit-font-feature-settings: "kern" on;
|
||||
font-feature-settings: "kern" on;
|
||||
}
|
||||
|
||||
pre {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="test">
|
||||
<pre><span>AWAY</span></pre>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,39 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>kerning sanity checks</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
@font-face {
|
||||
font-family: LinuxLibertine;
|
||||
src: url(../fonts/LinLibertine_Re-4.7.5.woff);
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 5px;
|
||||
}
|
||||
|
||||
div#test, div#test pre {
|
||||
font-family: Arial, LinuxLibertine, sans-serif;
|
||||
font-size: 300%;
|
||||
line-height: 1.1em;
|
||||
-moz-font-feature-settings: "kern" off;
|
||||
-webkit-font-feature-settings: "kern" off;
|
||||
font-feature-settings: "kern" off;
|
||||
}
|
||||
|
||||
pre {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="test">
|
||||
<pre><span>AWAY</span></pre>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,44 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>testing contextual kerning with spaces</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
body {
|
||||
margin: 5px;
|
||||
}
|
||||
|
||||
div#test, div#test pre {
|
||||
font-family: Arial, sans-serif;
|
||||
font-size: 150%;
|
||||
line-height: 1.1em;
|
||||
/* font-feature-settings == default */
|
||||
}
|
||||
|
||||
pre {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="test">
|
||||
<pre><span>Q A Q</span></pre>
|
||||
<pre><span>Q L Q</span></pre>
|
||||
<pre><span>Q P Q</span></pre>
|
||||
<pre><span>Q T Q</span></pre>
|
||||
<pre><span>Q Y Q</span></pre>
|
||||
<pre><span>Q Α Q</span></pre>
|
||||
<pre><span>Q Δ Q</span></pre>
|
||||
<pre><span>Q Λ Q</span></pre>
|
||||
<pre><span>Q Ρ Q</span></pre>
|
||||
<pre><span>Q Τ Q</span></pre>
|
||||
<pre><span>Q Υ Q</span></pre>
|
||||
<pre><span>Q Ϋ Q</span></pre>
|
||||
<pre><span>Q ’ Q</span></pre>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
46
layout/reftests/font-features/kerning-spaces-arial-kern.html
Normal file
46
layout/reftests/font-features/kerning-spaces-arial-kern.html
Normal file
@ -0,0 +1,46 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>testing contextual kerning with spaces</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
body {
|
||||
margin: 5px;
|
||||
}
|
||||
|
||||
div#test, div#test pre {
|
||||
font-family: Arial, sans-serif;
|
||||
font-size: 150%;
|
||||
line-height: 1.1em;
|
||||
-moz-font-feature-settings: "kern" on;
|
||||
-webkit-font-feature-settings: "kern" on;
|
||||
font-feature-settings: "kern" on;
|
||||
}
|
||||
|
||||
pre {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="test">
|
||||
<pre><span>Q A Q</span></pre>
|
||||
<pre><span>Q L Q</span></pre>
|
||||
<pre><span>Q P Q</span></pre>
|
||||
<pre><span>Q T Q</span></pre>
|
||||
<pre><span>Q Y Q</span></pre>
|
||||
<pre><span>Q Α Q</span></pre>
|
||||
<pre><span>Q Δ Q</span></pre>
|
||||
<pre><span>Q Λ Q</span></pre>
|
||||
<pre><span>Q Ρ Q</span></pre>
|
||||
<pre><span>Q Τ Q</span></pre>
|
||||
<pre><span>Q Υ Q</span></pre>
|
||||
<pre><span>Q Ϋ Q</span></pre>
|
||||
<pre><span>Q ’ Q</span></pre>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,46 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>testing contextual kerning with spaces</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
body {
|
||||
margin: 5px;
|
||||
}
|
||||
|
||||
div#test, div#test pre {
|
||||
font-family: Arial, sans-serif;
|
||||
font-size: 150%;
|
||||
line-height: 1.1em;
|
||||
-moz-font-feature-settings: "kern" off;
|
||||
-webkit-font-feature-settings: "kern" off;
|
||||
font-feature-settings: "kern" off;
|
||||
}
|
||||
|
||||
pre {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="test">
|
||||
<pre><span>Q A Q</span></pre>
|
||||
<pre><span>Q L Q</span></pre>
|
||||
<pre><span>Q P Q</span></pre>
|
||||
<pre><span>Q T Q</span></pre>
|
||||
<pre><span>Q Y Q</span></pre>
|
||||
<pre><span>Q Α Q</span></pre>
|
||||
<pre><span>Q Δ Q</span></pre>
|
||||
<pre><span>Q Λ Q</span></pre>
|
||||
<pre><span>Q Ρ Q</span></pre>
|
||||
<pre><span>Q Τ Q</span></pre>
|
||||
<pre><span>Q Υ Q</span></pre>
|
||||
<pre><span>Q Ϋ Q</span></pre>
|
||||
<pre><span>Q ’ Q</span></pre>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,46 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>testing contextual kerning with spaces</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
body {
|
||||
margin: 5px;
|
||||
}
|
||||
|
||||
div#test, div#test pre {
|
||||
font-family: Times New Roman, sans-serif;
|
||||
font-size: 150%;
|
||||
line-height: 1.1em;
|
||||
/* font-feature-settings == default */
|
||||
}
|
||||
|
||||
pre {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="test">
|
||||
<pre><span>Q A Q</span></pre>
|
||||
<pre><span>Q L Q</span></pre>
|
||||
<pre><span>Q P Q</span></pre>
|
||||
<pre><span>Q T Q</span></pre>
|
||||
<pre><span>Q V Q</span></pre>
|
||||
<pre><span>Q W Q</span></pre>
|
||||
<pre><span>Q Y Q</span></pre>
|
||||
<pre><span>Q Ά Q</span></pre>
|
||||
<pre><span>Q Α Q</span></pre>
|
||||
<pre><span>Q Δ Q</span></pre>
|
||||
<pre><span>Q Λ Q</span></pre>
|
||||
<pre><span>Q Τ Q</span></pre>
|
||||
<pre><span>Q Υ Q</span></pre>
|
||||
<pre><span>Q Ϋ Q</span></pre>
|
||||
<pre><span>Q ’ Q</span></pre>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
48
layout/reftests/font-features/kerning-spaces-tnr-kern.html
Normal file
48
layout/reftests/font-features/kerning-spaces-tnr-kern.html
Normal file
@ -0,0 +1,48 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>testing contextual kerning with spaces</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
body {
|
||||
margin: 5px;
|
||||
}
|
||||
|
||||
div#test, div#test pre {
|
||||
font-family: Times New Roman, sans-serif;
|
||||
font-size: 150%;
|
||||
line-height: 1.1em;
|
||||
-moz-font-feature-settings: "kern" on;
|
||||
-webkit-font-feature-settings: "kern" on;
|
||||
font-feature-settings: "kern" on;
|
||||
}
|
||||
|
||||
pre {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="test">
|
||||
<pre><span>Q A Q</span></pre>
|
||||
<pre><span>Q L Q</span></pre>
|
||||
<pre><span>Q P Q</span></pre>
|
||||
<pre><span>Q T Q</span></pre>
|
||||
<pre><span>Q V Q</span></pre>
|
||||
<pre><span>Q W Q</span></pre>
|
||||
<pre><span>Q Y Q</span></pre>
|
||||
<pre><span>Q Ά Q</span></pre>
|
||||
<pre><span>Q Α Q</span></pre>
|
||||
<pre><span>Q Δ Q</span></pre>
|
||||
<pre><span>Q Λ Q</span></pre>
|
||||
<pre><span>Q Τ Q</span></pre>
|
||||
<pre><span>Q Υ Q</span></pre>
|
||||
<pre><span>Q Ϋ Q</span></pre>
|
||||
<pre><span>Q ’ Q</span></pre>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
48
layout/reftests/font-features/kerning-spaces-tnr-nokern.html
Normal file
48
layout/reftests/font-features/kerning-spaces-tnr-nokern.html
Normal file
@ -0,0 +1,48 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>testing contextual kerning with spaces</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
body {
|
||||
margin: 5px;
|
||||
}
|
||||
|
||||
div#test, div#test pre {
|
||||
font-family: Times New Roman, sans-serif;
|
||||
font-size: 150%;
|
||||
line-height: 1.1em;
|
||||
-moz-font-feature-settings: "kern" off;
|
||||
-webkit-font-feature-settings: "kern" off;
|
||||
font-feature-settings: "kern" off;
|
||||
}
|
||||
|
||||
pre {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="test">
|
||||
<pre><span>Q A Q</span></pre>
|
||||
<pre><span>Q L Q</span></pre>
|
||||
<pre><span>Q P Q</span></pre>
|
||||
<pre><span>Q T Q</span></pre>
|
||||
<pre><span>Q V Q</span></pre>
|
||||
<pre><span>Q W Q</span></pre>
|
||||
<pre><span>Q Y Q</span></pre>
|
||||
<pre><span>Q Ά Q</span></pre>
|
||||
<pre><span>Q Α Q</span></pre>
|
||||
<pre><span>Q Δ Q</span></pre>
|
||||
<pre><span>Q Λ Q</span></pre>
|
||||
<pre><span>Q Τ Q</span></pre>
|
||||
<pre><span>Q Υ Q</span></pre>
|
||||
<pre><span>Q Ϋ Q</span></pre>
|
||||
<pre><span>Q ’ Q</span></pre>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -51,6 +51,17 @@ skip-if(B2G) HTTP(..) == font-features-turkish-override-5.html font-features-tur
|
||||
HTTP(..) == font-features-order-1.html font-features-ref.html
|
||||
HTTP(..) == font-features-order-2.html font-features-noliga.html
|
||||
|
||||
# sanity check for kerning - with no spaces, kerning should occur (XP version of Arial doesn't contain kerning data)
|
||||
HTTP(..) == kerning-sanity-check-kern.html kerning-sanity-check-default.html
|
||||
fails-if(/^Windows\x20NT\x205\.1/.test(http.oscpu)) HTTP(..) != kerning-sanity-check-nokern.html kerning-sanity-check-default.html
|
||||
|
||||
# OpenType features should work across inter-word spaces
|
||||
HTTP(..) == font-features-across-space-1.html font-features-across-space-1-ref.html
|
||||
HTTP(..) == font-features-across-space-2.html font-features-across-space-2-ref.html
|
||||
# requires Japanese font with feature support, WinXP lacks one
|
||||
random-if(!winWidget&&!cocoaWidget) fails-if(/^Windows\x20NT\x205\.1/.test(http.oscpu)) HTTP(..) == fwid-spaces.html fwid-spaces-ref.html
|
||||
# Arial/Times New Roman on Win7+/OSX 10.6+ have kerning pairs that include spaces
|
||||
random-if(!winWidget&&!cocoaWidget) fails-if(winWidget||cocoaWidget) random-if(/^Windows\x20NT\x205\.1/.test(http.oscpu)) HTTP(..) != kerning-spaces-arial-nokern.html kerning-spaces-arial-default.html
|
||||
random-if(!winWidget&&!cocoaWidget) fails-if(winWidget||cocoaWidget) random-if(/^Windows\x20NT\x205\.1/.test(http.oscpu)) HTTP(..) == kerning-spaces-arial-kern.html kerning-spaces-arial-default.html
|
||||
random-if(!winWidget&&!cocoaWidget) fails-if(winWidget||cocoaWidget) random-if(/^Windows\x20NT\x205\.1/.test(http.oscpu)) HTTP(..) != kerning-spaces-tnr-nokern.html kerning-spaces-tnr-default.html
|
||||
random-if(!winWidget&&!cocoaWidget) fails-if(winWidget||cocoaWidget) random-if(/^Windows\x20NT\x205\.1/.test(http.oscpu)) HTTP(..) == kerning-spaces-tnr-kern.html kerning-spaces-tnr-default.html
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user