the generation script was also updated accordingly
[alioth/musescore.git] / debian / patches / upstream / improve-mscore-font.diff
index 515ae2a..f2f5f2e 100644 (file)
@@ -8,6 +8,29 @@ Author: mirabilos <m@mirbsd.org>
 Forwarded: https://github.com/musescore/MuseScore/pull/6747
 Applied-Upstream: v3.6, commit:2b3dbc9eb350761eae5615edf814be8dba05dfb0
 
+--- a/fonts/mscore/genttf
++++ b/fonts/mscore/genttf
+@@ -1,6 +1,17 @@
+-#!/usr/bin/fontforge -lang=ff
++#!/bin/sh
+-Open($1)
+-Generate($1:r + ".ttf")
++# ensure that user preferences don't leak into the fonts
++FONTFORGE_LOADPREFS=Never
++FONTFORGE_VERBOSE=1
++LC_ALL=C
++export FONTFORGE_LOADPREFS FONTFORGE_VERBOSE LC_ALL
++# docs for Generate():
++# https://fontforge.org/docs/scripting/scripting-alpha.html#Generate
++# batch convert, with options suitably set
++# (0x800 means “generate an old-style kerning table”)
++fontforge -lang=ff -script - "$1" <<'EOF'
++Open($1)
++Generate($1:r + ".ttf", "", 0x800)
++EOF
 --- a/fonts/mscore/metadata.json
 +++ b/fonts/mscore/metadata.json
 @@ -1,6 +1,6 @@