-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample.html
55 lines (48 loc) · 1.35 KB
/
sample.html
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
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8" />
<title>kerning</title>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@900&display=swap" rel="stylesheet">
<style>
h1 {
font-size: 48px;
font-family: 'Noto Sans JP', sans-serif;
font-weight: 900;
}
.tate {
writing-mode: vertical-rl;
}
div {
display: flex;
}
.test {}
</style>
</head>
<body>
<h1 class="test">フォントプラスデイ</h1>
<div>
<h1 class="yoko">グラフィック</h1>
<h1 class="tate">グラフィック</h1>
</div>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="kerningText.js"></script>
<script type="text/javascript">
kerningText(".tate", [
"-0.12em",
"-0.18em",
"-0.44em",
"-0.32em",
"-0.14em",
]);
kerningText(".yoko", [
"-0.24em",
"-0.24em",
"-0.34em",
"-0.3em",
"-0.18em",
]);
kerningText(".test", ['-0.18em', '-0.18em', '-0.16em', '-0.24em', '-0.08em', '-0.18em', '-0.14em', '-0.08em']);
</script>
</body>
</html>