layout/reftests/font-face/local-1.html

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

michael@0 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
michael@0 2 <html>
michael@0 3 <head>
michael@0 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
michael@0 5 <meta http-equiv="Content-Style-Type" content="text/css">
michael@0 6 <title>test src: local()</title>
michael@0 7 <!--
michael@0 8
michael@0 9 Most systems are expected to have either Linotype's Helvetica or a
michael@0 10 substitute. These are needed for PostScript or PDF support. MS
michael@0 11 systems will have Monotype's Arial installed. Systems with
michael@0 12 ghostscript will normally have Nimbus Sans L. Linux systems without
michael@0 13 ghostscript may have Adobe's bitmap Helvetica for X11 or Ascender /
michael@0 14 Red Hat's Liberation Sans.
michael@0 15
michael@0 16 The result will be compared with fonts chosen through font-family.
michael@0 17 Platform aliases (on Windows and Linux) will map family names from
michael@0 18 one substitute to another, but similar aliasing does not happen with
michael@0 19 face names in local(). Therefore, all Helvetica substitute fonts
michael@0 20 are included in the @font-face rules.
michael@0 21
michael@0 22 Full names are specified for all fonts for MS Windows and Linux, and
michael@0 23 PostScript names are included for Mac for all fonts up to
michael@0 24 Helvetica, which is expected to be on every Mac.
michael@0 25
michael@0 26 The generic fallback is chosen to be serif, which is not expected to
michael@0 27 be the same as any of the local (sans-serif) faces in the @font-face
michael@0 28 rules, so that it makes failure to reference the local faces more
michael@0 29 obvious.
michael@0 30
michael@0 31 -->
michael@0 32 <style type="text/css">
michael@0 33 @font-face {
michael@0 34 font-family: "Local";
michael@0 35 src: local(Nimbus Sans L), local(NimbusSansL-Regu),
michael@0 36 local(Helvetica), local(Bitstream Vera Sans),
michael@0 37 local(Arial), local(Liberation Sans), local(SwissA),
michael@0 38 local(Fira Sans OT), local(Fira Sans),
michael@0 39 local(Droid Sans), local(Roboto);
michael@0 40 font-weight: 100;
michael@0 41 }
michael@0 42 @font-face {
michael@0 43 font-family: "Local";
michael@0 44 src: local(Nimbus Sans L Bold), local(NimbusSansL-Bold),
michael@0 45 local(Helvetica Bold), local(Helvetica-Bold),
michael@0 46 local(Bitstream Vera Sans Bold),
michael@0 47 local(Arial Bold), local(Liberation Sans Bold), local(SwissA Bold),
michael@0 48 local(Fira Sans OT Bold), local(Fira Sans Bold),
michael@0 49 local(Droid Sans Bold), local(Roboto Bold);
michael@0 50 font-weight: normal;
michael@0 51 }
michael@0 52 body { font-family: Local, serif }
michael@0 53 </style>
michael@0 54 </head>
michael@0 55 <body>
michael@0 56 <p style="font-weight: 100">
michael@0 57 The quick brown fox jumped over the lazy dog
michael@0 58 </p>
michael@0 59 <p style="font-weight: normal;">
michael@0 60 The quick brown fox jumped over the lazy dog
michael@0 61 </p>
michael@0 62 </body>
michael@0 63 </html>

mercurial