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/build.pe | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 srcs/special_font/build.pe (limited to 'srcs/special_font/build.pe') 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