layout/reftests/text/synthetic-bold-metrics-01.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.

     1 <!DOCTYPE html>
     2 <html>
     3 <head>
     4 <style type="text/css">
     5 @font-face {
     6   font-family: dvsm;
     7   src: url(../fonts/DejaVuSansMono.woff);
     8 }
    10 p {
    11   font-family: dvsm; /* family with only a single weight */
    12 }
    14 .test {
    15   color: white; /* hide the text, we're only comparing metrics */
    16   font-weight: bold; /* synthetic bold will be used */
    17 }
    18 </style>
    19 </head>
    20 <body>
    21 <p>AbcdefghijklmnopqrstuvwxyZ</p>
    22 <!-- the "test" span here uses synthetic bold, which should cause the following
    23      'Z' to appear further to the right -->
    24 <p>A<span class="test">bcdefghijklmnopqrstuvwxy</span>Z</p>
    25 </body>
    26 </html>

mercurial