From 473c272fe0f1016331f82c0870f2d66700f8777d Mon Sep 17 00:00:00 2001 From: remi Date: Thu, 5 May 2022 08:41:53 +0200 Subject: [PATCH] preload heonian font --- html/end.html | 3 +++ text_analysis.css | 13 +++++++++---- todo | 2 +- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/html/end.html b/html/end.html index 7b9e190..55186f9 100644 --- a/html/end.html +++ b/html/end.html @@ -1,5 +1,8 @@ + +  + \ No newline at end of file diff --git a/text_analysis.css b/text_analysis.css index 5837b54..01ffbad 100644 --- a/text_analysis.css +++ b/text_analysis.css @@ -165,14 +165,19 @@ main { font-family: "heonian"; } -data-swap { - display: none; -} - .button { text-decoration: underline; text-align: center; cursor: pointer; 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; } \ No newline at end of file diff --git a/todo b/todo index b1a8a20..8a73d6b 100644 --- a/todo +++ b/todo @@ -4,5 +4,5 @@ [ ] generator: word list [ ] js: word lookup [ ] 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..? \ No newline at end of file