From 39046928831442180ce89cd6941c6d1aac8400b4 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Mon, 10 Jul 2023 16:12:09 +0300 Subject: (icons) Moved most icons to non-PUA --- FontForge-helper.ff | 36 +++++++++++++++++++++++++++++++++++- awk-edits/Heading-anchors.awk | 2 +- src/_header.html | 2 +- src/font/tabler-icons-subset.ttf | Bin 6900 -> 6836 bytes src/scripts/expand-navbar.js | 6 +++--- 5 files changed, 40 insertions(+), 6 deletions(-) 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]*\\") + gsub(/$/, ORS "\\§") } 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 @@