mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 921858 - reftest to test various space-containing lookup scenarios. r=jfkthame
This commit is contained in:
parent
6f3296db00
commit
0c28d8f8e3
@ -89,6 +89,9 @@ 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(..) == spacelookups.html spacelookups-ref.html
|
||||
# tests whether word cache is in use by testing for ignored space kerns
|
||||
HTTP(..) == spacelookups-wordcache.html spacelookups-wordcache-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
|
||||
|
33
layout/reftests/font-features/spacelookups-ref.html
Normal file
33
layout/reftests/font-features/spacelookups-ref.html
Normal file
@ -0,0 +1,33 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>contextual substitutions for fonts with spaces in lookups</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link rel="author" title="John Daggett" href="mailto:jdaggett@mozilla.com"/>
|
||||
<style type="text/css">
|
||||
@font-face {
|
||||
font-family: spacelookup-defscr-deflang-deffeat;
|
||||
src: url(../fonts/spacelookups/spacelookup-defscr-deflang-deffeat.ttf);
|
||||
}
|
||||
body {
|
||||
margin: 20px 40px;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
div { font-size: 400%; }
|
||||
|
||||
.spacelookup-defscr-deflang-deffeat { font-family: spacelookup-defscr-deflang-deffeat; }
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div class="spacelookup-defscr-deflang-deffeat">
|
||||
<span></span>
|
||||
<span></span>
|
||||
<span></span>
|
||||
<span></span>
|
||||
<span></span>
|
||||
<span></span>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,83 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>contextual substitutions for fonts with spaces in lookups</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link rel="author" title="John Daggett" href="mailto:jdaggett@mozilla.com"/>
|
||||
<style type="text/css">
|
||||
|
||||
@font-face {
|
||||
font-family: spacelookup-defscr-deflang-deffeat;
|
||||
src: url(../fonts/spacelookups/spacelookup-defscr-deflang-deffeat.ttf);
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: spacelookup-defscr-deflang-ndeffeat;
|
||||
src: url(../fonts/spacelookups/spacelookup-defscr-deflang-ndeffeat.ttf);
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: spacelookup-latnscr-deflang-deffeat;
|
||||
src: url(../fonts/spacelookups/spacelookup-latnscr-deflang-deffeat.ttf);
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: spacelookup-latnscr-deflang-ndeffeat;
|
||||
src: url(../fonts/spacelookups/spacelookup-latnscr-deflang-ndeffeat.ttf);
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: spacelookup-latnscr-fralang-deffeat;
|
||||
src: url(../fonts/spacelookups/spacelookup-latnscr-fralang-deffeat.ttf);
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: spacelookup-latnscr-fralang-ndeffeat;
|
||||
src: url(../fonts/spacelookups/spacelookup-latnscr-fralang-ndeffeat.ttf);
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 20px 40px;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
div { font-size: 200%; }
|
||||
|
||||
p { margin: 0; line-height: 1.2; }
|
||||
|
||||
.spacelookup-defscr-deflang-deffeat { font-family: spacelookup-defscr-deflang-deffeat; }
|
||||
.spacelookup-defscr-deflang-ndeffeat { font-family: spacelookup-defscr-deflang-ndeffeat; }
|
||||
.spacelookup-latnscr-deflang-deffeat { font-family: spacelookup-latnscr-deflang-deffeat; }
|
||||
.spacelookup-latnscr-deflang-ndeffeat { font-family: spacelookup-latnscr-deflang-ndeffeat; }
|
||||
.spacelookup-latnscr-fralang-deffeat { font-family: spacelookup-latnscr-fralang-deffeat; }
|
||||
.spacelookup-latnscr-fralang-ndeffeat { font-family: spacelookup-latnscr-fralang-ndeffeat; }
|
||||
|
||||
p.kern {
|
||||
-webkit-font-feature-settings: "liga" on, "kern" on;
|
||||
-moz-font-feature-settings: "liga" on, "kern" on;
|
||||
font-feature-settings: "liga" on, "kern" on;
|
||||
}
|
||||
|
||||
p.nokern {
|
||||
-webkit-font-feature-settings: "liga" on, "kern" off;
|
||||
-moz-font-feature-settings: "liga" on, "kern" off;
|
||||
font-feature-settings: "liga" on, "kern" off;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div class="spacelookup-defscr-deflang-deffeat" lang="en">
|
||||
<p class="spacelookup-defscr-deflang-deffeat kern">     </p>
|
||||
<p class="spacelookup-latnscr-deflang-deffeat kern">     </p>
|
||||
<p class="spacelookup-latnscr-fralang-deffeat kern">     </p>
|
||||
<p class="spacelookup-defscr-deflang-ndeffeat nokern">     </p>
|
||||
<p class="spacelookup-latnscr-deflang-ndeffeat nokern">     </p>
|
||||
<p class="spacelookup-latnscr-fralang-ndeffeat nokern">     </p>
|
||||
<p class="spacelookup-defscr-deflang-ndeffeat kern">     </p>
|
||||
<p class="spacelookup-latnscr-deflang-ndeffeat kern">     </p>
|
||||
<p class="spacelookup-latnscr-fralang-ndeffeat kern">     </p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
77
layout/reftests/font-features/spacelookups-wordcache.html
Normal file
77
layout/reftests/font-features/spacelookups-wordcache.html
Normal file
@ -0,0 +1,77 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>contextual substitutions for fonts with spaces in lookups</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link rel="author" title="John Daggett" href="mailto:jdaggett@mozilla.com"/>
|
||||
<meta name="bug" content="https://bugzilla.mozilla.org/show_bug.cgi?id=921858"/>
|
||||
<style type="text/css">
|
||||
|
||||
@font-face {
|
||||
font-family: spacelookup-defscr-deflang-deffeat;
|
||||
src: url(../fonts/spacelookups/spacelookup-defscr-deflang-deffeat.ttf);
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: spacelookup-defscr-deflang-ndeffeat;
|
||||
src: url(../fonts/spacelookups/spacelookup-defscr-deflang-ndeffeat.ttf);
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: spacelookup-latnscr-deflang-deffeat;
|
||||
src: url(../fonts/spacelookups/spacelookup-latnscr-deflang-deffeat.ttf);
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: spacelookup-latnscr-deflang-ndeffeat;
|
||||
src: url(../fonts/spacelookups/spacelookup-latnscr-deflang-ndeffeat.ttf);
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: spacelookup-latnscr-fralang-deffeat;
|
||||
src: url(../fonts/spacelookups/spacelookup-latnscr-fralang-deffeat.ttf);
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: spacelookup-latnscr-fralang-ndeffeat;
|
||||
src: url(../fonts/spacelookups/spacelookup-latnscr-fralang-ndeffeat.ttf);
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 20px 40px;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
div { font-size: 200%; }
|
||||
|
||||
p { margin: 0; line-height: 1.2; }
|
||||
|
||||
.spacelookup-defscr-deflang-deffeat { font-family: spacelookup-defscr-deflang-deffeat; }
|
||||
.spacelookup-defscr-deflang-ndeffeat { font-family: spacelookup-defscr-deflang-ndeffeat; }
|
||||
.spacelookup-latnscr-deflang-deffeat { font-family: spacelookup-latnscr-deflang-deffeat; }
|
||||
.spacelookup-latnscr-deflang-ndeffeat { font-family: spacelookup-latnscr-deflang-ndeffeat; }
|
||||
.spacelookup-latnscr-fralang-deffeat { font-family: spacelookup-latnscr-fralang-deffeat; }
|
||||
.spacelookup-latnscr-fralang-ndeffeat { font-family: spacelookup-latnscr-fralang-ndeffeat; }
|
||||
|
||||
.dlig {
|
||||
-webkit-font-feature-settings: "dlig" on;
|
||||
-moz-font-feature-settings: "dlig" on;
|
||||
font-feature-settings: "dlig" on;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div class="spacelookup-defscr-deflang-deffeat" lang="en">
|
||||
<p class="spacelookup-defscr-deflang-deffeat">latn-script default-script fra-lang default-lang non-default-feature default-feature</p>
|
||||
<p class="spacelookup-latnscr-deflang-deffeat">latn-script default-script fra-lang default-lang non-default-feature default-feature</p>
|
||||
<p class="spacelookup-latnscr-fralang-deffeat">latn-script default-script fra-lang default-lang non-default-feature default-feature</p>
|
||||
<p class="spacelookup-defscr-deflang-ndeffeat">latn-script default-script fra-lang default-lang non-default-feature default-feature</p>
|
||||
<p class="spacelookup-latnscr-deflang-ndeffeat">latn-script default-script fra-lang default-lang non-default-feature default-feature</p>
|
||||
<p class="spacelookup-latnscr-fralang-ndeffeat">latn-script default-script fra-lang default-lang non-default-feature default-feature</p>
|
||||
<p class="spacelookup-defscr-deflang-ndeffeat dlig">latn-script default-script fra-lang default-lang non-default-feature default-feature</p>
|
||||
<p class="spacelookup-latnscr-deflang-ndeffeat dlig">latn-script default-script fra-lang default-lang non-default-feature default-feature</p>
|
||||
<p class="spacelookup-latnscr-fralang-ndeffeat dlig">latn-script default-script fra-lang default-lang non-default-feature default-feature</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
83
layout/reftests/font-features/spacelookups.html
Normal file
83
layout/reftests/font-features/spacelookups.html
Normal file
@ -0,0 +1,83 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>contextual substitutions for fonts with spaces in lookups</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link rel="author" title="John Daggett" href="mailto:jdaggett@mozilla.com"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/css-fonts-3/#default-features"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/css-fonts-3/#font-feature-settings"/>
|
||||
<link rel="match" href="spacelookups-ref.html"/>
|
||||
<meta name="flags" content=""/>
|
||||
<meta name="assert" content="spaces in contextual lookups should not affect glyph substitutions"/>
|
||||
<meta name="bug" content="https://bugzilla.mozilla.org/show_bug.cgi?id=921858"/>
|
||||
<style type="text/css">
|
||||
/*
|
||||
Fonts below contain different arrangements of features/lookups. All
|
||||
contain substitution rules for words such "default-script". Each individual
|
||||
font has additional substitution rules so that a sequence of words with
|
||||
spaces will end up as a thumbs up icon glyph.
|
||||
*/
|
||||
|
||||
@font-face {
|
||||
font-family: spacelookup-defscr-deflang-deffeat;
|
||||
src: url(../fonts/spacelookups/spacelookup-defscr-deflang-deffeat.ttf);
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: spacelookup-defscr-deflang-ndeffeat;
|
||||
src: url(../fonts/spacelookups/spacelookup-defscr-deflang-ndeffeat.ttf);
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: spacelookup-latnscr-deflang-deffeat;
|
||||
src: url(../fonts/spacelookups/spacelookup-latnscr-deflang-deffeat.ttf);
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: spacelookup-latnscr-deflang-ndeffeat;
|
||||
src: url(../fonts/spacelookups/spacelookup-latnscr-deflang-ndeffeat.ttf);
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: spacelookup-latnscr-fralang-deffeat;
|
||||
src: url(../fonts/spacelookups/spacelookup-latnscr-fralang-deffeat.ttf);
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: spacelookup-latnscr-fralang-ndeffeat;
|
||||
src: url(../fonts/spacelookups/spacelookup-latnscr-fralang-ndeffeat.ttf);
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 20px 40px;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
div { font-size: 400%; }
|
||||
|
||||
.spacelookup-defscr-deflang-deffeat { font-family: spacelookup-defscr-deflang-deffeat; }
|
||||
.spacelookup-defscr-deflang-ndeffeat { font-family: spacelookup-defscr-deflang-ndeffeat; }
|
||||
.spacelookup-latnscr-deflang-deffeat { font-family: spacelookup-latnscr-deflang-deffeat; }
|
||||
.spacelookup-latnscr-deflang-ndeffeat { font-family: spacelookup-latnscr-deflang-ndeffeat; }
|
||||
.spacelookup-latnscr-fralang-deffeat { font-family: spacelookup-latnscr-fralang-deffeat; }
|
||||
.spacelookup-latnscr-fralang-ndeffeat { font-family: spacelookup-latnscr-fralang-ndeffeat; }
|
||||
|
||||
.dlig {
|
||||
-webkit-font-feature-settings: "dlig" on;
|
||||
-moz-font-feature-settings: "dlig" on;
|
||||
font-feature-settings: "dlig" on;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div class="spacelookup-defscr-deflang-deffeat">
|
||||
<span class="spacelookup-defscr-deflang-deffeat">default-script default-lang default-feature</span>
|
||||
<span class="spacelookup-defscr-deflang-ndeffeat dlig">default-script default-lang non-default-feature</span>
|
||||
<span class="spacelookup-latnscr-deflang-deffeat">latn-script default-lang default-feature</span>
|
||||
<span class="spacelookup-latnscr-deflang-ndeffeat dlig">latn-script default-lang non-default-feature</span>
|
||||
<span class="spacelookup-latnscr-fralang-deffeat" lang="fr">latn-script fra-lang default-feature</span>
|
||||
<span class="spacelookup-latnscr-fralang-ndeffeat dlig" lang="fr">latn-script fra-lang non-default-feature</span>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user