forked from danmarshall/google-font-to-svg-path
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·103 lines (79 loc) · 3.98 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
91
92
93
94
95
96
97
98
99
100
101
102
103
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>google-font-to-svg-path</title>
<meta name="description" content="google-font-to-svg-path">
<link rel="stylesheet" type="text/css" href="index.css" />
<script src="https://maker.js.org/target/js/browser.maker.js" type="text/javascript"></script>
<script src="https://cdn.jsdelivr.net/npm/bezier-js@2/bezier.js"></script>
<script src="opentype.js" type="text/javascript"></script>
<script src="index.js" type="text/javascript"></script>
<script data-ad-client="ca-pub-9656548229423934" async
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
</head>
<body>
<h1>Google Font to Svg Path</h1>
<a href="https://github.com/danmarshall/google-font-to-svg-path" class="link-to-github">link to GitHub</a>
<hr />
<main>
<div class="content">
<div class="input-holder">
<label>Google font: <select id="font-select" class="input"></select></label>
</div>
<div class="input-holder">
<label>(optional) upload font: <input id="font-upload" type="file" class="input" /></label>
<button id="font-upload-remove" class="input">Remove</button>
</div>
<div class="input-holder">
<label>variant: <select id="font-variant" class="input"></select></label>
</div>
<div class="input-holder">
<label>text: <input type="text" id="input-text" value="Verb" class="input-text input" /></label>
</div>
<div class="input-holder">
<label>size: <input type="number" id="input-size" value="100" class="input-size input" /></label>
</div>
<div class="input-holder">
<label>union: <input type="checkbox" id="input-union" /></label>
</div>
<div class="input-holder">
<label>kerning: <input type="checkbox" id="input-kerning" checked /></label>
</div>
<div class="input-holder">
<label>fill: <input type="checkbox" id="input-filled" checked /></label>
</div>
<div class="input-holder"><label>separate characters: <input type="checkbox" id="input-separate" /></label>
</div>
<div class="input-holder">
<label>bezier accuracy <span
title="0.5 = accurate to half a pixel 
.001 = accurate to 1/1000th of a pixel 
smaller numbers take longer to compute 
leave blank for auto">🛈</span>
: <input type="text" id="input-bezier-accuracy" placeholder="auto" class="input" /></label>
</div>
<div class="input-holder">
<label>Dxf Units: <select id="dxf-units" class="input"></select></label>
</div>
<div id="svg-render"></div>
<div class="textarea-container">
<textarea id="output-svg" readonly></textarea>
<div class="buttons-container">
<button class="btn" id="copy-to-clipboard-btn">copy to clipboard</button>
<a id="download-btn" class="btn">Download Svg</a>
<a id="create-link" class="btn">Create link</a>
<a id="dxf-btn" class="btn">Download Dxf</a>
</div>
</div>
</div>
<div class="sidebar">
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- vertical -->
<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-9656548229423934"
data-ad-slot="8489021387" data-ad-format="auto" data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</main>
<input id="dummy" name="dummy" type="hidden">
</body>
</html>