diff options
| Commit | 39046928831442180ce89cd6941c6d1aac8400b4 (patch) | |
|---|---|---|
| Author | 2023-07-10 16:12:09 +0300 | |
| Committer | 2023-07-10 16:12:09 +0300 | |
| Files | 6bab4b65d4276d0fe16c27a7217b3bd3454aef40 | |
| syndamia.com-39046928831442180ce89cd6941c6d1aac8400b4.tar syndamia.com-39046928831442180ce89cd6941c6d1aac8400b4.tar.gz syndamia.com-39046928831442180ce89cd6941c6d1aac8400b4.zip | ||
| Parent | df39b59662d70f64c85ea4626fc45c4ed424f172 (diff) | |
(icons) Moved most icons to non-PUA
5 files changed, 40 insertions, 6 deletions
| -rwxr-xr-x | FontForge-helper.ff | 36 | ||||
| -rw-r--r-- | awk-edits/Heading-anchors.awk | 2 | ||||
| -rw-r--r-- | src/_header.html | 2 | ||||
| -rw-r--r-- | src/font/tabler-icons-subset.ttf | bin | 6900 -> 6836 bytes | |||
| -rw-r--r-- | src/scripts/expand-navbar.js | 6 |
diff --git a/FontForge-helper.ff b/FontForge-helper.ff index 81c87bc..85e7a05 100755 --- a/FontForge-helper.ff +++ b/FontForge-helper.ff @@ -15,7 +15,7 @@ Open($1) Select("uea19") # arrow-left -SelectMore("uea1c") # arrow-right +SelectMore("uea1f") # arrow-right SelectMore("uf7d6") # arrow-badge-down-filled SelectMore("uf7d9") # arrow-badge-up-filled SelectMore("uf1e2") # article @@ -34,4 +34,38 @@ SelectMore("ueb0e") # printer SelectInvert() DetachAndRemoveGlyphs() + +# +# Move characters from PUA to established glyphs +# This "makes" sure the character is useable even if font fails +# Only done to functional characters +# + +# arrow-left to ← leftwards arrow +Select("uea19"); Cut(); Select("u2190"); Paste() + +# arrow-right to → rightwards arrow +Select("uea1f"); Cut(); Select("u2192"); Paste() + +# arrow-badge-down-filled to ▼ black down-pointing triangle +Select("uf7d6"); Cut(); Select("u25BC"); Paste() + +# arrow-badge-up-filled to ▲ black up-pointing triangle +Select("uf7d9"); Cut(); Select("u25B2"); Paste() + +# article to ☲ trigram for fire +Select("uf1e2"); Cut(); Select("u2632"); Paste() + +# chevrons-up to ︽ presentation form for vertical left double angle bracket +Select("uea66"); Cut(); Select("uFE3D"); Paste() + +# link to § section sign +Select("ueade"); Cut(); Select("u00A7"); Paste() + +# presentation to ⎚ clear screen +Select("ueb70"); Cut(); Select("u239A"); Paste() + +# printer to ⎙ print screen symbol +Select("ueb0e"); Cut(); Select("u2399"); Paste() + Generate("./src/font/tabler-icons-subset.ttf") diff --git a/awk-edits/Heading-anchors.awk b/awk-edits/Heading-anchors.awk index 2877fde..56e522e 100644 --- a/awk-edits/Heading-anchors.awk +++ b/awk-edits/Heading-anchors.awk @@ -8,5 +8,5 @@ /[ \t]*<h[23456]/ { id = substr($0, index($0, "id=\"") + 4) id = substr(id, 0, index(id, "\"") - 1) - gsub(/$/, ORS "<a class=\"h-anchor\" href=\"#" id "\" aria-hidden=\"true\">\\</a>") + gsub(/$/, ORS "<a class=\"h-anchor\" href=\"#" id "\" aria-hidden=\"true\">\\§</a>") } diff --git a/src/_header.html b/src/_header.html index 9f5d0d3..0b7b1a6 100644 --- a/src/_header.html +++ b/src/_header.html @@ -27,7 +27,7 @@ <nav id="sidebar"> <nav id="header"> <a href="/">Home</a> - <div id="expandNavbarBtn" class="unzoomable btn"></div> + <div id="expandNavbarBtn" class="unzoomable btn">▲</div> <script type="text/javascript" src="/scripts/expand-navbar.js" crossorigin="anonymous" defer></script> </nav> diff --git a/src/font/tabler-icons-subset.ttf b/src/font/tabler-icons-subset.ttf Binary files differindex 1914116..02ab6aa 100644 --- a/src/font/tabler-icons-subset.ttf +++ b/src/font/tabler-icons-subset.ttf diff --git a/src/scripts/expand-navbar.js b/src/scripts/expand-navbar.js index 5f7da5a..d97314b 100644 --- a/src/scripts/expand-navbar.js +++ b/src/scripts/expand-navbar.js @@ -2,7 +2,7 @@ const expandBtn = document.getElementById('expandNavbarBtn'); const sidebarElem = document.getElementById('sidebar'); if (localStorage.getItem('navbar') === 'hidden' || window.innerWidth <= 610) { - expandBtn.innerHTML = ''; + expandBtn.innerHTML = '▼'; sidebarElem.classList.add('sidebar-hidden'); } @@ -10,11 +10,11 @@ expandBtn.onclick = function() { sidebarElem.classList.toggle('sidebar-hidden'); if (!sidebarElem.classList.contains('sidebar-hidden')) { - expandBtn.innerHTML = ''; + expandBtn.innerHTML = '▲'; // triangle pointing up if (window.innerWidth > 610) localStorage.setItem('navbar', 'norm'); } else { - expandBtn.innerHTML = ''; + expandBtn.innerHTML = '▼'; // triangle pointing down if (window.innerWidth > 610) localStorage.setItem('navbar', 'hidden'); } } |