preload heonian font

This commit is contained in:
remi 2022-05-05 08:41:53 +02:00
parent 720aefbffa
commit 473c272fe0
3 changed files with 13 additions and 5 deletions

View File

@ -1,5 +1,8 @@
</main> </main>
<script src="main.js"></script> <script src="main.js"></script>
<font-preload>

</font-preload>
</body> </body>
</html> </html>

View File

@ -165,14 +165,19 @@ main {
font-family: "heonian"; font-family: "heonian";
} }
data-swap {
display: none;
}
.button { .button {
text-decoration: underline; text-decoration: underline;
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
user-select: none; user-select: none;
-webkit-user-select: none; -webkit-user-select: none;
}
font-preload {
font-family: var(--font-heonian);
position: fixed;
top: 0;
left: 0;
pointer-events: none;
opacity: 0;
} }

2
todo
View File

@ -4,5 +4,5 @@
[ ] generator: word list [ ] generator: word list
[ ] js: word lookup [ ] js: word lookup
[ ] css: night mode lol [ ] css: night mode lol
[ ] html: preload heonian font to prevent split second of it looking Strange [x] html: preload heonian font to prevent split second of it looking Strange
[ ] ???: translation support..? [ ] ???: translation support..?