ensure we don’t even accidentally bundle FreeFont
[alioth/musescore.git] / debian / patches / debian-specific / debundle-fonts.diff
1 Description: Don’t bundle fonts-freefont-ttf in the executable,
2  use the system copy (even if this means rendering will differ
3  from other places and musescore.com, the local user will get
4  the bugfixes applied to the Debian packaging of said fonts)
5  .
6  This was discussed around the Campania debate; basically, both
7  embedding and depending have upsides and downsides… ☹
8  .
9  Considering MuseScore is GPLv2 and the font is GPLv3+FE though
10  it’s safer to not embed it into the binary at all.
11 Author: mirabilos <tg@debian.org>
12 Forwarded: not-needed
13 Justification: distribution-specific packaging
14
15 --- a/libmscore/mscore.cpp
16 +++ b/libmscore/mscore.cpp
17 @@ -204,11 +204,13 @@ void MScore::init()
18  #if !defined(Q_OS_MAC) && !defined(Q_OS_IOS)
19        static const char* fonts[] = {
20              ":/fonts/MuseJazz.ttf",
21 +#if 0
22              ":/fonts/FreeSans.ttf",
23              ":/fonts/FreeSerif.ttf",
24              ":/fonts/FreeSerifBold.ttf",
25              ":/fonts/FreeSerifItalic.ttf",
26              ":/fonts/FreeSerifBoldItalic.ttf",
27 +#endif
28              ":/fonts/mscoreTab.ttf",
29              ":/fonts/mscore-BC.ttf",
30              ":/fonts/bravura/BravuraText.otf",
31 --- a/mscore/CMakeLists.txt
32 +++ b/mscore/CMakeLists.txt
33 @@ -137,8 +137,7 @@ else (APPLE)
34              musescorefonts-Gootville.qrc
35              musescorefonts-Bravura.qrc
36              musescorefonts-MuseJazz.qrc
37 -            musescorefonts-FreeSerif.qrc
38 -            musescorefonts-Free.qrc)
39 +            )
40  endif (APPLE)
41  
42  
43 --- a/mtest/CMakeLists.txt
44 +++ b/mtest/CMakeLists.txt
45 @@ -29,8 +29,6 @@ QT5_ADD_RESOURCES(qrc_files ${PROJECT_SO
46              ${PROJECT_SOURCE_DIR}/mscore/musescorefonts-Gootville.qrc
47              ${PROJECT_SOURCE_DIR}/mscore/musescorefonts-Bravura.qrc
48              ${PROJECT_SOURCE_DIR}/mscore/musescorefonts-MuseJazz.qrc
49 -            ${PROJECT_SOURCE_DIR}/mscore/musescorefonts-Free.qrc
50 -            ${PROJECT_SOURCE_DIR}/mscore/musescorefonts-FreeSerif.qrc
51        )
52  
53  add_library (testResources STATIC