From ce8a3cc46218347579ca35e370d1afb20a5a4f48 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Wed, 8 Nov 2023 16:05:25 -0500 Subject: [PATCH] sfd2woff.ff: take the output file as another argument In out-of-source builds, we can't write the output to the same directory as the input. --- sfd2woff.ff | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sfd2woff.ff b/sfd2woff.ff index a3585c6..8f60855 100755 --- a/sfd2woff.ff +++ b/sfd2woff.ff @@ -1,8 +1,7 @@ #!/usr/bin/env fontforge # -# FontForge script to convert its argument (some font file) to -# woff2. The base name of the file is kept the same and a .woff2 -# extension is added. See, +# FontForge script that converts its first argument (a font file) to +# woff2, saving the results to its second argument (a path). See, # # https://fontforge.org/docs/tutorial/scripting-tutorial.html # @@ -29,4 +28,4 @@ # 819212 # Open($1); -Generate($1:r + ".woff2","",819212); +Generate($2,"",819212); -- 2.44.2