File: packaged_fonts.diff

package info (click to toggle)
qtquickcontrols-opensource-src 5.15.17-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,252 kB
  • sloc: cpp: 15,660; javascript: 115; makefile: 23
file content (93 lines) | stat: -rw-r--r-- 3,507 bytes parent folder | download | duplicates (4)
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
Description: use packaged DejaVu Sans and OpenSans fonts
Author: Dmitry Shachnev <mitya57@debian.org>
Forwarded: not-needed
Last-Update: 2019-05-16

--- a/examples/quickcontrols/extras/dashboard/dashboard.qrc
+++ b/examples/quickcontrols/extras/dashboard/dashboard.qrc
@@ -1,6 +1,5 @@
 <RCC>
     <qresource prefix="/">
-        <file>fonts/DejaVuSans.ttf</file>
         <file>images/fuel-icon.png</file>
         <file>images/temperature-icon.png</file>
         <file>qml/dashboard.qml</file>
--- a/examples/quickcontrols/extras/dashboard/main.cpp
+++ b/examples/quickcontrols/extras/dashboard/main.cpp
@@ -57,7 +57,7 @@
 {
     QGuiApplication app(argc, argv);
 
-    QFontDatabase::addApplicationFont(":/fonts/DejaVuSans.ttf");
+    QFontDatabase::addApplicationFont("/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf");
     app.setFont(QFont("DejaVu Sans"));
 
     QQmlApplicationEngine engine(QUrl("qrc:/qml/dashboard.qml"));
--- a/examples/quickcontrols/extras/gallery/gallery.qrc
+++ b/examples/quickcontrols/extras/gallery/gallery.qrc
@@ -1,6 +1,5 @@
 <RCC>
     <qresource prefix="/">
-        <file>fonts/OpenSans-Regular.ttf</file>
         <file>images/background-light.png</file>
         <file>images/background.png</file>
         <file>images/center-light.png</file>
--- a/examples/quickcontrols/extras/gallery/qml/gallery.qml
+++ b/examples/quickcontrols/extras/gallery/qml/gallery.qml
@@ -381,7 +381,7 @@
 
     FontLoader {
         id: openSans
-        source: "qrc:/fonts/OpenSans-Regular.ttf"
+        source: "file:///usr/share/fonts/truetype/open-sans/OpenSans-Regular.ttf"
      }
 
     property var componentMap: {
--- a/src/extras/Styles/Flat/Flat.pro
+++ b/src/extras/Styles/Flat/Flat.pro
@@ -55,11 +55,7 @@
 FLAT_STYLE += \
     $$PWD/images/BusyIndicator_Normal-Large.png \
     $$PWD/images/BusyIndicator_Normal-Medium.png \
-    $$PWD/images/BusyIndicator_Normal-Small.png \
-    $$PWD/fonts/OpenSans-Light.ttf \
-    $$PWD/fonts/OpenSans-Regular.ttf \
-    $$PWD/fonts/OpenSans-Semibold.ttf \
-    $$PWD/fonts/LICENSE.txt \
+    $$PWD/images/BusyIndicator_Normal-Small.png
 
 !static:RESOURCES += flatstyle.qrc
 else: QML_FILES += $$FLAT_STYLE
--- a/src/extras/Styles/Flat/FlatStyle.qml
+++ b/src/extras/Styles/Flat/FlatStyle.qml
@@ -88,15 +88,15 @@
     readonly property int radius: Math.round(scaleFactor * 3)
 
     property FontLoader __openSansDemiBoldLoader: FontLoader {
-        source: "fonts/OpenSans-Semibold.ttf"
+        source: "file:///usr/share/fonts/truetype/open-sans/OpenSans-Semibold.ttf"
     }
 
     property FontLoader __openSansRegularLoader: FontLoader {
-        source: "fonts/OpenSans-Regular.ttf"
+        source: "file:///usr/share/fonts/truetype/open-sans/OpenSans-Regular.ttf"
     }
 
     property FontLoader __openSansLightLoader: FontLoader {
-        source: "fonts/OpenSans-Light.ttf"
+        source: "file:///usr/share/fonts/truetype/open-sans/OpenSans-Light.ttf"
     }
 
     readonly property int __renderType: Text.QtRendering
--- a/src/extras/Styles/Flat/flatstyle.qrc
+++ b/src/extras/Styles/Flat/flatstyle.qrc
@@ -43,9 +43,5 @@
         <file>images/BusyIndicator_Normal-Large.png</file>
         <file>images/BusyIndicator_Normal-Medium.png</file>
         <file>images/BusyIndicator_Normal-Small.png</file>
-        <file>fonts/LICENSE.txt</file>
-        <file>fonts/OpenSans-Light.ttf</file>
-        <file>fonts/OpenSans-Regular.ttf</file>
-        <file>fonts/OpenSans-Semibold.ttf</file>
     </qresource>
 </RCC>