bug 761442 - reftest for ligatures that span inter-word space. r=jdaggett

This commit is contained in:
Jonathan Kew 2013-01-08 13:56:05 +00:00
parent 585d4dca7f
commit 4fd9de13e1
6 changed files with 180 additions and 2 deletions

View File

@ -0,0 +1,47 @@
<!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%;
-moz-font-feature-settings: "liga=1";
-moz-font-feature-settings: "liga" on;
-webkit-font-feature-settings: "liga" on;
-ms-font-feature-settings: "liga" on;
-o-font-feature-settings: "liga" on;
font-feature-settings: "liga" on;
}
</style>
</head>
<body>
<table>
<tr><td>calendar</td><td class="test">&#xe15e;</td></tr>
<tr><td>daily calendar</td><td class="test">&#xe025;</td></tr>
<tr><td>align left</td><td class="test">&#xe005;</td></tr>
<tr><td>align center</td><td class="test">&#xe004;</td></tr>
<tr><td>align right</td><td class="test">&#xe006;</td></tr>
<tr><td>volume</td><td class="test">&#xe13b;</td></tr>
<tr><td>volume down</td><td class="test">&#xe13c;</td></tr>
<tr><td>volume up</td><td class="test">&#xe13d;</td></tr>
<tr><td>zoom in</td><td class="test">&#xe142;</td></tr>
<tr><td>zoom out</td><td class="test">&#xe143;</td></tr>
<tr><td>heart</td><td class="test">&#xe06e;</td></tr>
<tr><td>heart empty</td><td class="test">&#xe06f;</td></tr>
</table>
</body>
</html>

View File

@ -0,0 +1,47 @@
<!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%;
-moz-font-feature-settings: "liga=1";
-moz-font-feature-settings: "liga" on;
-webkit-font-feature-settings: "liga" on;
-ms-font-feature-settings: "liga" on;
-o-font-feature-settings: "liga" on;
font-feature-settings: "liga" on;
}
</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>

View File

@ -0,0 +1,41 @@
<!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">&#xe15e;</td></tr>
<tr><td>daily calendar</td><td class="test">daily &#xe15e;</td></tr>
<tr><td>align left</td><td class="test">align &#xe080;</td></tr>
<tr><td>align center</td><td class="test">align center</td></tr>
<tr><td>align right</td><td class="test">align &#xe112;</td></tr>
<tr><td>volume</td><td class="test">&#xe13b;</td></tr>
<tr><td>volume down</td><td class="test">&#xe13b; &#xe03e;</td></tr>
<tr><td>volume up</td><td class="test">&#xe13b; &#xe135;</td></tr>
<tr><td>zoom in</td><td class="test">&#xe142; &#xe087;</td></tr>
<tr><td>zoom out</td><td class="test">&#xe142; &#xe088;</td></tr>
<tr><td>heart</td><td class="test">&#xe06e;</td></tr>
<tr><td>heart empty</td><td class="test">&#xe06e; empty</td></tr>
</table>
</body>
</html>

View File

@ -0,0 +1,41 @@
<!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>

View File

@ -3,8 +3,6 @@
# These rely on the Linux Libertine font (loaded via @font-face)
# to ensure that features are present.
# Feature support is currently enabled only on Mac OS X by default
# check that Turkish language causes a change in rendering (no fi ligature)
# (also works via Pango)
skip-if(B2G) HTTP(..) != font-features-turkish.html font-features-ref.html # bug 773482
@ -52,3 +50,7 @@ skip-if(B2G) HTTP(..) == font-features-turkish-override-5.html font-features-tur
# check that last value wins if a feature is repeated
HTTP(..) == font-features-order-1.html font-features-ref.html
HTTP(..) == font-features-order-2.html font-features-noliga.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

Binary file not shown.