layout/reftests/font-features/spacelookups.html

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     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 */
    21 @font-face {
    22   font-family: spacelookup-defscr-deflang-deffeat;
    23   src: url(../fonts/spacelookups/spacelookup-defscr-deflang-deffeat.ttf);
    24 }
    26 @font-face {
    27   font-family: spacelookup-defscr-deflang-ndeffeat;
    28   src: url(../fonts/spacelookups/spacelookup-defscr-deflang-ndeffeat.ttf);
    29 }
    31 @font-face {
    32   font-family: spacelookup-latnscr-deflang-deffeat;
    33   src: url(../fonts/spacelookups/spacelookup-latnscr-deflang-deffeat.ttf);
    34 }
    36 @font-face {
    37   font-family: spacelookup-latnscr-deflang-ndeffeat;
    38   src: url(../fonts/spacelookups/spacelookup-latnscr-deflang-ndeffeat.ttf);
    39 }
    41 @font-face {
    42   font-family: spacelookup-latnscr-fralang-deffeat;
    43   src: url(../fonts/spacelookups/spacelookup-latnscr-fralang-deffeat.ttf);
    44 }
    46 @font-face {
    47   font-family: spacelookup-latnscr-fralang-ndeffeat;
    48   src: url(../fonts/spacelookups/spacelookup-latnscr-fralang-ndeffeat.ttf);
    49 }
    51 body {
    52   margin: 20px 40px;
    53   line-height: 1.2;
    54 }
    56 div { font-size: 400%; }
    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; }
    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>
    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>

mercurial