]> gitweb.michael.orlitzky.com - charm-bypass.git/commitdiff
Makefile.am: add rule to build woff2 fonts from sfd sources
authorMichael Orlitzky <michael@orlitzky.com>
Thu, 19 Oct 2023 00:56:34 +0000 (20:56 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Thu, 19 Oct 2023 01:16:01 +0000 (21:16 -0400)
Makefile.am

index 04406bac8e41997bcdc126df8d5ffe0eee988157..db4ea90bc59b17cb0498711f58589969e07f705b 100644 (file)
@@ -31,6 +31,10 @@ day.min.svg: day.svg
                 --error-on-flowtext \
                 $< > $@
 
+# Use FontForge to convert the sfd source files to woff2.
+.sfd.woff2:
+       @FONTFORGE@ -script sfd2woff $<
+
 # Base64-encode a woff2 (web open font format 2.0) file. We use this
 # to embed fonts directly into the CSS that requires them.
 .woff2.base64: