bug 593564 - reftest for synthetic bold glyph metrics. a=test-only

This commit is contained in:
Jonathan Kew 2010-09-16 17:41:40 +01:00
Родитель 50f2737229
Коммит 6c7c9727c2
3 изменённых файлов: 51 добавлений и 0 удалений

Просмотреть файл

@ -28,6 +28,8 @@ random-if(!cocoaWidget) == font-size-adjust-02.html font-size-adjust-02-ref.html
== soft-hyphens-1b.html soft-hyphens-1-ref.html
== soft-hyphens-1c.html soft-hyphens-1-ref.html
== swash-1.html swash-1-ref.html
# Test for bug 593564, synthetic bold should cause glyph metrics to increase
HTTP(..) != synthetic-bold-metrics-01.html synthetic-bold-metrics-01-notref.html
== white-space-1a.html white-space-1-ref.html
== white-space-1b.html white-space-1-ref.html
== white-space-2.html white-space-2-ref.html

Просмотреть файл

@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
@font-face {
font-family: dvsm;
src: url(../fonts/DejaVuSansMono.woff);
}
p {
font-family: dvsm; /* family with only a single weight */
}
.test {
color: white; /* hide the text, we're only comparing metrics */
}
</style>
</head>
<body>
<p>AbcdefghijklmnopqrstuvwxyZ</p>
<p>A<span class="test">bcdefghijklmnopqrstuvwxy</span>Z</p>
</body>
</html>

Просмотреть файл

@ -0,0 +1,26 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
@font-face {
font-family: dvsm;
src: url(../fonts/DejaVuSansMono.woff);
}
p {
font-family: dvsm; /* family with only a single weight */
}
.test {
color: white; /* hide the text, we're only comparing metrics */
font-weight: bold; /* synthetic bold will be used */
}
</style>
</head>
<body>
<p>AbcdefghijklmnopqrstuvwxyZ</p>
<!-- the "test" span here uses synthetic bold, which should cause the following
'Z' to appear further to the right -->
<p>A<span class="test">bcdefghijklmnopqrstuvwxy</span>Z</p>
</body>
</html>