-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
90 lines (70 loc) · 1.89 KB
/
index.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!DOCTYPE html>
<html>
<head>
<title>Font Inspect</title>
</head>
<style>
html, body
{
margin: 0;
padding: 0;
width: 100vw;
height: 100vh;
font-family: Verdana, sans-serif;
font-size: 0.9em;
}
#divLayout
{
display: grid;
padding: 1em;
width: calc(100vw - 2em);
height: calc(100vh - 2em);
max-width: calc(100vw - 2em);
max-height: calc(100vh - 2em);
grid-template-columns: 1fr;
grid-template-rows: auto 1fr;
}
#divGlyphList
{
border: 1px solid gray;
background-color: #ddd;
overflow: auto;
}
.glyphListItem
{
display: inline-block;
margin: 1px;
border: 2px solid transparent;
}
.glyphListItem:hover
{
border: 2px solid #06f;
}
.glyphListItemLabel
{
font-family: monospace;
text-align: center;
background-color: #eee;
}
</style>
<body>
<div id="divLayout">
<div style="grid-row:1; grid-column:1;">
<input id="inputFile" type="file" accept=".ttf,.otf,.ttc,.otc"></input>
<span style="font-size:0.75em; margin-left:1.5em;">Check the Console for extra output!</span>
<br>
<br>
Sub-font: <select id="selectFontIndex" disabled><option>No font loaded</option></select>
<label for="checkboxDrawMetrics"><input id="checkboxDrawMetrics" type="checkbox" checked></input> Draw Glyph Metrics</label>
<label for="checkboxSortUnicode"><input id="checkboxSortUnicode" type="checkbox"></input> Sort by Unicode</label>
<label for="checkboxCustomRender"><input id="checkboxCustomRender" type="checkbox"></input> DEBUG: Custom Rasterizer</label>
<br>
<span style="font-size:0.75em;">(Double-click a glyph to print geometry data to the Console and inspect its Unicode codepoint.)</span>
<br>
<br>
</div>
<div id="divGlyphList" style="grid-row:2; grid-column:1;"></div>
</div>
<script src="webpack/main.js"></script>
</body>
</html>