layout/reftests/font-features/spacelookups.html

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

michael@0 1 <!DOCTYPE html>
michael@0 2 <html>
michael@0 3 <head>
michael@0 4 <title>contextual substitutions for fonts with spaces in lookups</title>
michael@0 5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
michael@0 6 <link rel="author" title="John Daggett" href="mailto:jdaggett@mozilla.com"/>
michael@0 7 <link rel="help" href="http://www.w3.org/TR/css-fonts-3/#default-features"/>
michael@0 8 <link rel="help" href="http://www.w3.org/TR/css-fonts-3/#font-feature-settings"/>
michael@0 9 <link rel="match" href="spacelookups-ref.html"/>
michael@0 10 <meta name="flags" content=""/>
michael@0 11 <meta name="assert" content="spaces in contextual lookups should not affect glyph substitutions"/>
michael@0 12 <meta name="bug" content="https://bugzilla.mozilla.org/show_bug.cgi?id=921858"/>
michael@0 13 <style type="text/css">
michael@0 14 /*
michael@0 15 Fonts below contain different arrangements of features/lookups. All
michael@0 16 contain substitution rules for words such "default-script". Each individual
michael@0 17 font has additional substitution rules so that a sequence of words with
michael@0 18 spaces will end up as a thumbs up icon glyph.
michael@0 19 */
michael@0 20
michael@0 21 @font-face {
michael@0 22 font-family: spacelookup-defscr-deflang-deffeat;
michael@0 23 src: url(../fonts/spacelookups/spacelookup-defscr-deflang-deffeat.ttf);
michael@0 24 }
michael@0 25
michael@0 26 @font-face {
michael@0 27 font-family: spacelookup-defscr-deflang-ndeffeat;
michael@0 28 src: url(../fonts/spacelookups/spacelookup-defscr-deflang-ndeffeat.ttf);
michael@0 29 }
michael@0 30
michael@0 31 @font-face {
michael@0 32 font-family: spacelookup-latnscr-deflang-deffeat;
michael@0 33 src: url(../fonts/spacelookups/spacelookup-latnscr-deflang-deffeat.ttf);
michael@0 34 }
michael@0 35
michael@0 36 @font-face {
michael@0 37 font-family: spacelookup-latnscr-deflang-ndeffeat;
michael@0 38 src: url(../fonts/spacelookups/spacelookup-latnscr-deflang-ndeffeat.ttf);
michael@0 39 }
michael@0 40
michael@0 41 @font-face {
michael@0 42 font-family: spacelookup-latnscr-fralang-deffeat;
michael@0 43 src: url(../fonts/spacelookups/spacelookup-latnscr-fralang-deffeat.ttf);
michael@0 44 }
michael@0 45
michael@0 46 @font-face {
michael@0 47 font-family: spacelookup-latnscr-fralang-ndeffeat;
michael@0 48 src: url(../fonts/spacelookups/spacelookup-latnscr-fralang-ndeffeat.ttf);
michael@0 49 }
michael@0 50
michael@0 51 body {
michael@0 52 margin: 20px 40px;
michael@0 53 line-height: 1.2;
michael@0 54 }
michael@0 55
michael@0 56 div { font-size: 400%; }
michael@0 57
michael@0 58 .spacelookup-defscr-deflang-deffeat { font-family: spacelookup-defscr-deflang-deffeat; }
michael@0 59 .spacelookup-defscr-deflang-ndeffeat { font-family: spacelookup-defscr-deflang-ndeffeat; }
michael@0 60 .spacelookup-latnscr-deflang-deffeat { font-family: spacelookup-latnscr-deflang-deffeat; }
michael@0 61 .spacelookup-latnscr-deflang-ndeffeat { font-family: spacelookup-latnscr-deflang-ndeffeat; }
michael@0 62 .spacelookup-latnscr-fralang-deffeat { font-family: spacelookup-latnscr-fralang-deffeat; }
michael@0 63 .spacelookup-latnscr-fralang-ndeffeat { font-family: spacelookup-latnscr-fralang-ndeffeat; }
michael@0 64
michael@0 65 .dlig {
michael@0 66 -webkit-font-feature-settings: "dlig" on;
michael@0 67 -moz-font-feature-settings: "dlig" on;
michael@0 68 font-feature-settings: "dlig" on;
michael@0 69 }
michael@0 70 </style>
michael@0 71
michael@0 72 </head>
michael@0 73 <body>
michael@0 74 <div class="spacelookup-defscr-deflang-deffeat">
michael@0 75 <span class="spacelookup-defscr-deflang-deffeat">default-script default-lang default-feature</span>
michael@0 76 <span class="spacelookup-defscr-deflang-ndeffeat dlig">default-script default-lang non-default-feature</span>
michael@0 77 <span class="spacelookup-latnscr-deflang-deffeat">latn-script default-lang default-feature</span>
michael@0 78 <span class="spacelookup-latnscr-deflang-ndeffeat dlig">latn-script default-lang non-default-feature</span>
michael@0 79 <span class="spacelookup-latnscr-fralang-deffeat" lang="fr">latn-script fra-lang default-feature</span>
michael@0 80 <span class="spacelookup-latnscr-fralang-ndeffeat dlig" lang="fr">latn-script fra-lang non-default-feature</span>
michael@0 81 </div>
michael@0 82 </body>
michael@0 83 </html>

mercurial