-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
148 lines (136 loc) · 3.25 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<html>
<head>
<meta charset="utf-8">
<title>Fira Logic</title>
<link href="https://fonts.googleapis.com/css?family=Fira+Mono" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Fira+Sans" rel="stylesheet">
<style type="text/css" media="screen">
@font-face{
font-family: "Fira Logic";
src: url("dist/FiraLogic-Regular.woff") format('woff');
}
body {
text-rendering:optimizeLegibility;
padding:5pt;
font-family:Fira Sans;
max-width:600px;
min-width:410px;
margin-left:auto;
margin-right:auto;
}
a { color:black }
textarea {
font-size:14pt;
height:50pt;
width:100%;
text-align:center;
background:#eeeeee;
resize:none;
border:none;
padding:1em;
margin-bottom:1em;
}
table {
margin-left:auto;
margin-right:auto;
border-collapse:collapse;
}
td { padding:5px; }
.labeled {
position: relative;
}
.labeled > span:first-child {
font-size:10px;
position:absolute;
top:2px;
left:2px;
}
.demo { font-family:Fira Logic; }
.mirror { font-family:Fira Mono; }
#splash {
font-size:52pt;
font-family:Fira Logic;
}
</style>
</head>
<body>
<span id="splash">Fira L∅gic</span>
<p>
A FOSS font for logical notation.
Based on <a href="https://mozilla.github.io/Fira/">Fira Mono</a>.
Goes nicely with <a href="https://mozilla.github.io/Fira/">Fira Sans</a>.
</p>
<p>A few handy ligatures:</p>
<table>
<tr class="mirror">
<td>|-</td>
<td>|=</td>
<td>[]</td>
<td><></td>
<td>/\</td>
<td>\/</td>
<td>-></td>
<td><-></td>
<td><-</td>
<td>=></td>
<td><=></td>
<td><=</td>
</tr>
<tr class="demo">
<td>|-</td>
<td>|=</td>
<td>[]</td>
<td><></td>
<td>/\</td>
<td>\/</td>
<td>-></td>
<td><-></td>
<td><-</td>
<td>=></td>
<td><=></td>
<td><=</td>
</tr>
</table>
<p>And a few extra unicode glyphs:</p>
<table>
<tr class="demo">
<td>∀</td>
<td>∃</td>
<td>∈</td>
<td>⊂</td>
<td>⊃</td>
<td>⊆</td>
<td>⊇</td>
<td>∅</td>
</tr>
<tr class="demo">
<td>∩</td>
<td>∪</td>
<td>⋂</td>
<td>⋃</td>
</tr>
</table>
<p>Voilà:</p>
<div class="labeled">
<span >
Fira Mono
</span>
<textarea id="mirrorarea" class="mirror">∀x∀y(x=y<->∀z(z∈x<->z∈y))</textarea>
</div>
<div class="labeled">
<span>Fira Logic</span>
<textarea id="demoarea" class="demo">∀x∀y(x=y<->∀z(z∈x<->z∈y))</textarea>
</div>
</body>
<script charset="utf-8">
function mirror(e1,e2) {
e1.addEventListener("keyup",function(){
e2.value = e1.value;
});
};
var marea = document.getElementById("mirrorarea");
var darea = document.getElementById("demoarea");
mirror(marea,darea);
mirror(darea,marea);
</script>
</html>