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