Package: musescore2 / 2.3.2+dfsg4-16

debian-specific/debundle-fonts.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
Description: Don’t bundle fonts-freefont-ttf in the executable,
 use the system copy (even if this means rendering will differ
 from other places and musescore.com, the local user will get
 the bugfixes applied to the Debian packaging of said fonts)
 .
 This was discussed around the Campania debate; basically, both
 embedding and depending have upsides and downsides… ☹
 .
 Considering MuseScore is GPLv2 and the font is GPLv3+FE though
 it’s safer to not embed it into the binary at all.
Author: mirabilos <tg@debian.org>
Forwarded: not-needed
Justification: distribution-specific packaging

--- a/libmscore/mscore.cpp
+++ b/libmscore/mscore.cpp
@@ -204,11 +204,13 @@ void MScore::init()
 #if !defined(Q_OS_MAC) && !defined(Q_OS_IOS)
       static const char* fonts[] = {
             ":/fonts/MuseJazz.ttf",
+#if 0
             ":/fonts/FreeSans.ttf",
             ":/fonts/FreeSerif.ttf",
             ":/fonts/FreeSerifBold.ttf",
             ":/fonts/FreeSerifItalic.ttf",
             ":/fonts/FreeSerifBoldItalic.ttf",
+#endif
             ":/fonts/mscoreTab.ttf",
             ":/fonts/mscore-BC.ttf",
             ":/fonts/bravura/BravuraText.otf",
--- a/mscore/CMakeLists.txt
+++ b/mscore/CMakeLists.txt
@@ -137,8 +137,7 @@ else (APPLE)
             musescorefonts-Gootville.qrc
             musescorefonts-Bravura.qrc
             musescorefonts-MuseJazz.qrc
-            musescorefonts-FreeSerif.qrc
-            musescorefonts-Free.qrc)
+            )
 endif (APPLE)
 
 
--- a/mtest/CMakeLists.txt
+++ b/mtest/CMakeLists.txt
@@ -29,8 +29,6 @@ QT5_ADD_RESOURCES(qrc_files ${PROJECT_SO
             ${PROJECT_SOURCE_DIR}/mscore/musescorefonts-Gootville.qrc
             ${PROJECT_SOURCE_DIR}/mscore/musescorefonts-Bravura.qrc
             ${PROJECT_SOURCE_DIR}/mscore/musescorefonts-MuseJazz.qrc
-            ${PROJECT_SOURCE_DIR}/mscore/musescorefonts-Free.qrc
-            ${PROJECT_SOURCE_DIR}/mscore/musescorefonts-FreeSerif.qrc
       )
 
 add_library (testResources STATIC
--- a/mtest/testutils.cpp
+++ b/mtest/testutils.cpp
@@ -33,8 +33,6 @@ inline void initMyResources() {
       Q_INIT_RESOURCE(musescorefonts_Gootville);
       Q_INIT_RESOURCE(musescorefonts_Bravura);
       Q_INIT_RESOURCE(musescorefonts_MuseJazz);
-      Q_INIT_RESOURCE(musescorefonts_FreeSerif);
-      Q_INIT_RESOURCE(musescorefonts_Free);
 }
 
 extern Ms::Score::FileError importOve(Ms::Score*, const QString& name);