From e63ff8f837947d574cc2da0c764b564302580343 Mon Sep 17 00:00:00 2001
From: Jules Aguillon
Date: Thu, 17 Mar 2022 20:08:26 +0100
Subject: Stateless build of the special font file
Keep the glyphs in SVG format and build the font using a FontForge
script.
A part of the previous font is kept because the sources is lost.
This adds a new dependency to the build system, fontforge.
---
srcs/special_font/01.svg | 7 +++++++
srcs/special_font/02.svg | 16 ++++++++++++++++
srcs/special_font/03.svg | 16 ++++++++++++++++
srcs/special_font/04.svg | 1 +
srcs/special_font/README.md | 8 ++++++++
srcs/special_font/base_font.ttf | Bin 0 -> 5780 bytes
srcs/special_font/build.pe | 15 +++++++++++++++
7 files changed, 63 insertions(+)
create mode 100644 srcs/special_font/01.svg
create mode 100644 srcs/special_font/02.svg
create mode 100644 srcs/special_font/03.svg
create mode 100644 srcs/special_font/04.svg
create mode 100644 srcs/special_font/README.md
create mode 100644 srcs/special_font/base_font.ttf
create mode 100644 srcs/special_font/build.pe
(limited to 'srcs/special_font')
diff --git a/srcs/special_font/01.svg b/srcs/special_font/01.svg
new file mode 100644
index 0000000..86169a4
--- /dev/null
+++ b/srcs/special_font/01.svg
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/srcs/special_font/02.svg b/srcs/special_font/02.svg
new file mode 100644
index 0000000..3eab9dc
--- /dev/null
+++ b/srcs/special_font/02.svg
@@ -0,0 +1,16 @@
+
+
+
+
+
diff --git a/srcs/special_font/03.svg b/srcs/special_font/03.svg
new file mode 100644
index 0000000..a4140eb
--- /dev/null
+++ b/srcs/special_font/03.svg
@@ -0,0 +1,16 @@
+
+
+
+
+
diff --git a/srcs/special_font/04.svg b/srcs/special_font/04.svg
new file mode 100644
index 0000000..2a52ef7
--- /dev/null
+++ b/srcs/special_font/04.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/srcs/special_font/README.md b/srcs/special_font/README.md
new file mode 100644
index 0000000..baa8bb6
--- /dev/null
+++ b/srcs/special_font/README.md
@@ -0,0 +1,8 @@
+# Fonts
+
+See copyright notice in each SVG files.
+
+The glyphs in `base_font.ttf` are made by:
+
+- Home and End
+ Author: @sdrapha
diff --git a/srcs/special_font/base_font.ttf b/srcs/special_font/base_font.ttf
new file mode 100644
index 0000000..2bfd130
Binary files /dev/null and b/srcs/special_font/base_font.ttf differ
diff --git a/srcs/special_font/build.pe b/srcs/special_font/build.pe
new file mode 100644
index 0000000..fab828b
--- /dev/null
+++ b/srcs/special_font/build.pe
@@ -0,0 +1,15 @@
+# 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)
+
+# Imports glyphs, file name is position in the font.
+i = 3
+while (i < $argc)
+ Select(Strtol($argv[i]:t:r))
+ Import($argv[i])
+ i++
+endloop
+
+Generate($1)
--
cgit v1.2.3