abouttreesummaryrefslogcommitdiff
path: root/srcs/special_font
diff options
context:
space:
mode:
authorJules Aguillon2022-03-18 12:24:29 +0100
committerJules Aguillon2022-03-18 12:55:08 +0100
commitd733f8c78c4159dd78d5c9ffa2683cfb3fa894e8 (patch)
treee716ca67dc14b112f0814930cd86a30798acfa0d /srcs/special_font
parente63ff8f837947d574cc2da0c764b564302580343 (diff)
downloadunexpected-keyboard-d733f8c78c4159dd78d5c9ffa2683cfb3fa894e8.tar.gz
unexpected-keyboard-d733f8c78c4159dd78d5c9ffa2683cfb3fa894e8.zip
Build all special glyphs from SVG
Recover the provenance of each glyphs and remove the base_font.ttf file.
Diffstat (limited to 'srcs/special_font')
-rw-r--r--srcs/special_font/05.svg3
-rw-r--r--srcs/special_font/06.svg3
-rw-r--r--srcs/special_font/07.svg3
-rw-r--r--srcs/special_font/08.svg3
-rw-r--r--srcs/special_font/09.svg6
-rw-r--r--srcs/special_font/0A.svg6
-rw-r--r--srcs/special_font/0B.svg3
-rw-r--r--srcs/special_font/0C.svg3
-rw-r--r--srcs/special_font/0D.svg3
-rw-r--r--srcs/special_font/0E.svg9
-rw-r--r--srcs/special_font/base_font.ttfbin5780 -> 0 bytes
-rw-r--r--srcs/special_font/build.pe8
12 files changed, 45 insertions, 5 deletions
diff --git a/srcs/special_font/05.svg b/srcs/special_font/05.svg
new file mode 100644
index 0000000..cdec868
--- /dev/null
+++ b/srcs/special_font/05.svg
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- materialdesignicons.com arrow-up-bold -->
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path d="M15,20H9V12H4.16L12,4.16L19.84,12H15V20Z" /></svg>
diff --git a/srcs/special_font/06.svg b/srcs/special_font/06.svg
new file mode 100644
index 0000000..af11f53
--- /dev/null
+++ b/srcs/special_font/06.svg
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- materialdesignicons.com arrow-right-bold -->
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path d="M4,15V9H12V4.16L19.84,12L12,19.84V15H4Z" /></svg>
diff --git a/srcs/special_font/07.svg b/srcs/special_font/07.svg
new file mode 100644
index 0000000..cccba2a
--- /dev/null
+++ b/srcs/special_font/07.svg
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- materialdesignicons.com arrow-down-bold -->
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path d="M9,4H15V12H19.84L12,19.84L4.16,12H9V4Z" /></svg>
diff --git a/srcs/special_font/08.svg b/srcs/special_font/08.svg
new file mode 100644
index 0000000..58827da
--- /dev/null
+++ b/srcs/special_font/08.svg
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- materialdesignicons.com arrow-left-bold -->
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path d="M20,9V15H12V19.84L4.16,12L12,4.16V9H20Z" /></svg>
diff --git a/srcs/special_font/09.svg b/srcs/special_font/09.svg
new file mode 100644
index 0000000..049cc30
--- /dev/null
+++ b/srcs/special_font/09.svg
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generated by IcoMoon.io -->
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
+<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="16" viewBox="0 0 18 16">
+<path fill="#000000" d="M17 2h-16c-0.55 0-1 0.45-1 1v10c0 0.55 0.45 1 1 1h16c0.55 0 1-0.45 1-1v-10c0-0.55-0.45-1-1-1zM10 4h2v2h-2v-2zM13 7v2h-2v-2h2zM7 4h2v2h-2v-2zM10 7v2h-2v-2h2zM4 4h2v2h-2v-2zM7 7v2h-2v-2h2zM2 4h1v2h-1v-2zM2 7h2v2h-2v-2zM3 12h-1v-2h1v2zM12 12h-8v-2h8v2zM16 12h-3v-2h3v2zM16 9h-2v-2h2v2zM16 6h-3v-2h3v2z"></path>
+</svg>
diff --git a/srcs/special_font/0A.svg b/srcs/special_font/0A.svg
new file mode 100644
index 0000000..350ba63
--- /dev/null
+++ b/srcs/special_font/0A.svg
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generated by IcoMoon.io -->
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
+<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16" viewBox="0 0 16 16">
+<path fill="#000000" d="M10.5 14h-5c-0.276 0-0.5-0.224-0.5-0.5v-5.5h-2c-0.202 0-0.385-0.122-0.462-0.309s-0.035-0.402 0.108-0.545l5-5c0.195-0.195 0.512-0.195 0.707 0l5 5c0.143 0.143 0.186 0.358 0.108 0.545s-0.26 0.309-0.462 0.309h-2v5.5c0 0.276-0.224 0.5-0.5 0.5zM6 13h4v-5.5c0-0.276 0.224-0.5 0.5-0.5h1.293l-3.793-3.793-3.793 3.793h1.293c0.276 0 0.5 0.224 0.5 0.5v5.5z"></path>
+</svg>
diff --git a/srcs/special_font/0B.svg b/srcs/special_font/0B.svg
new file mode 100644
index 0000000..dc359c4
--- /dev/null
+++ b/srcs/special_font/0B.svg
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- materialdesignicons.com arrow-collapse-left -->
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path d="M11.92,19.92L4,12L11.92,4.08L13.33,5.5L7.83,11H22V13H7.83L13.34,18.5L11.92,19.92M4,12V2H2V22H4V12Z" /></svg>
diff --git a/srcs/special_font/0C.svg b/srcs/special_font/0C.svg
new file mode 100644
index 0000000..c46ad76
--- /dev/null
+++ b/srcs/special_font/0C.svg
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- materialdesignicons.com arrow-collapse-right -->
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path d="M12.08,4.08L20,12L12.08,19.92L10.67,18.5L16.17,13H2V11H16.17L10.67,5.5L12.08,4.08M20,12V22H22V2H20V12Z" /></svg>
diff --git a/srcs/special_font/0D.svg b/srcs/special_font/0D.svg
new file mode 100644
index 0000000..7c6afbe
--- /dev/null
+++ b/srcs/special_font/0D.svg
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- materialdesignicons.com keyboard-space -->
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path d="M3 15H5V19H19V15H21V19C21 20.1 20.1 21 19 21H5C3.9 21 3 20.1 3 19V15Z" /></svg>
diff --git a/srcs/special_font/0E.svg b/srcs/special_font/0E.svg
new file mode 100644
index 0000000..499c2c8
--- /dev/null
+++ b/srcs/special_font/0E.svg
@@ -0,0 +1,9 @@
+<?xml version="1.0" standalone="no"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="-10 0 870 1000">
+ <g transform="matrix(1 0 0 -1 0 850)">
+ <path fill="currentColor"
+d="M200 390h510v240h140v-280q0 -42 -30 -71t-70 -29h-550v-100l-200 170l200 170v-100z" />
+ </g>
+
+</svg>
diff --git a/srcs/special_font/base_font.ttf b/srcs/special_font/base_font.ttf
deleted file mode 100644
index 2bfd130..0000000
--- a/srcs/special_font/base_font.ttf
+++ /dev/null
Binary files differ
diff --git a/srcs/special_font/build.pe b/srcs/special_font/build.pe
index fab828b..de5ed23 100644
--- a/srcs/special_font/build.pe
+++ b/srcs/special_font/build.pe
@@ -1,13 +1,11 @@
# The special font is used for the symbols of some keys. It is built from SVG
# files, one for each glyph.
-
-# Starts from an existing font file for glyphs that don't have SVG sources yet.
-Open($2)
+New()
# Imports glyphs, file name is position in the font.
-i = 3
+i = 2
while (i < $argc)
- Select(Strtol($argv[i]:t:r))
+ Select(Strtol($argv[i]:t:r, 16))
Import($argv[i])
i++
endloop