-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
51 lines (51 loc) · 2.3 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Unicode Range Generator</title>
</head>
<body class="no-js">
<div class="page">
<main>
<div class="container">
<h1>Generate CSS unicode-range from a font file</h1>
<form class="grid">
<label for="path">choose a file</label>
<div>
<input type="file" id="path" name="path" />
<p style="margin-top: 1em">Supported formats: TTF, OTF, WOFF.</p>
<p>The file will be processed in your browser.</p>
</div>
<label for="exclude"
>exclude glyphs from another file<br />
(optional)</label
>
<div>
<input type="file" id="exclude" name="exlude" />
<p style="margin-top: 1em">
The resulting unicode-range will contain glyphs from the first file minus those from
this file.
</p>
</div>
</form>
<div class="results">
<h2>Results</h2>
<h3>unicode-range</h3>
<p id="unicode-range">…</p>
<h3>glyphs</h3>
<div id="unicode-blocks">…</div>
</div>
<p class="error" id="error">This app requires JavaScript</p>
</div>
</main>
<footer>
<a href="https://www.jakubvalenta.cz/" target="_blank" rel="noreferrer">Jakub Valenta</a> 2023
<a href="/~https://github.com/jakubvalenta/unicode-range" target="_blank" rel="noreferrer">code</a>
made with
<a href="/~https://github.com/opentypejs/opentype.js" target="_blank" rel="noreferrer">opentype.js</a>
</footer>
</div>
<script type="module" src="/src/web.ts"></script>
</body>
</html>