bug 575695 - reftest - verify that legacy 'kern' table is supported. r=jdaggett

This commit is contained in:
Jonathan Kew 2010-07-28 14:36:00 +01:00
Родитель f3de9449ab
Коммит 1827fc5cdf
4 изменённых файлов: 45 добавлений и 0 удалений

Двоичные данные
layout/reftests/fonts/mplus/mplus-1p-regular-no-OT.ttf Normal file

Двоичный файл не отображается.

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

@ -0,0 +1,22 @@
<html>
<head>
<style type="text/css">
@font-face {
font-family: mplus;
src: url(../fonts/mplus/mplus-1p-regular-no-OT.ttf);
/* a copy of M+ with OpenType tables removed, so only legacy 'kern' is present */
}
body {
text-rendering: optimizeLegibility;
font-size: 40px;
font-family: mplus;
}
</style>
</head>
<body>
<!-- the ZWNJ characters should prevent kerning at those positions;
if the testcase looks the same, then kerning failed altogether -->
AVA&zwnj;V&zwnj;A
</body>
</html>

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

@ -0,0 +1,20 @@
<html>
<head>
<style type="text/css">
@font-face {
font-family: mplus;
src: url(../fonts/mplus/mplus-1p-regular-no-OT.ttf);
/* a copy of M+ with OpenType tables removed, so only legacy 'kern' is present */
}
body {
text-rendering: optimizeLegibility;
font-size: 40px;
font-family: mplus;
}
</style>
</head>
<body>
AVAVA
</body>
</html>

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

@ -57,5 +57,8 @@ random HTTP(..) == 475092-pos.html 475092-sub.html # bug 482596
== 476378-soft-hyphen-fallback.html 476378-soft-hyphen-fallback-ref.html
# Test for bug 484954
== rgba-text.html rgba-text-ref.html
# Test for bug 575695, 'kern' table support
# Random on Windows because behavior depends on Uniscribe version(?)
random-if(MOZ_WIDGET_TOOLKIT=="windows") HTTP(..) != kerning-01.html kerning-01-notref.html
# Test for bug 577380, support for AAT layout (on OS X only)
random-if(MOZ_WIDGET_TOOLKIT!="cocoa") == 577380.html 577380-ref.html