summaryrefslogtreecommitdiff
path: root/Base/res/html/misc/font-face.html
blob: 742a638239d737778f40c852950323f115f42433 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS @font-face Test</title>
<style>
@font-face {
    font-family: TestWOFF-TTF;
    src: url("./test-truetype.woff") format("woff");
}
.woff-ttf {
    font-family: TestWOFF-TTF;
}

@font-face {
    font-family: TestWOFF-CFF;
    src: url("./test-cff.woff") format("woff");
}
.woff-cff {
    font-family: TestWOFF-CFF;
}

@font-face {
    font-family: TestWOFF2-TTF;
    src: url("./test-truetype.woff2") format("woff2");
}
.woff2-ttf {
    font-family: TestWOFF2-TTF;
}

@font-face {
    font-family: TestWOFF2-CFF;
    src: url("./test-cff.woff2") format("woff2");
}
.woff2-cff {
    font-family: TestWOFF2-CFF;
}

@font-face {
    font-family: TestTTF;
    src: url("./test.ttf") format("truetype");
}
.ttf {
    font-family: TestTTF;
}

@font-face {
    font-family: TestOTF;
    src: url("./test.otf") format("opentype");
}
.otf {
    font-family: TestOTF;
}

body {
    font-family: sans-serif;
}

</style>
</head>
<body>
<p>These should render checkmarks, not X's</p>
<p>WOFF with TTF: <span class="woff-ttf">X</span></p>
<p>WOFF with CFF: <span class="woff-cff">X</span></p>
<p>WOFF2 with TTF: <span class="woff2-ttf">X</span></p>
<p>WOFF2 with CFF: <span class="woff2-cff">X</span></p>
<p>TTF: <span class="ttf">X</span></p>
<p>OTF: <span class="otf">X</span></p>
</body>
</html>