File: Add_debian_font_path.patch

package info (click to toggle)
kristall 0.4%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 33,824 kB
  • sloc: cpp: 11,646; python: 3,658; sh: 74; makefile: 68; awk: 58; xml: 14
file content (32 lines) | stat: -rw-r--r-- 973 bytes parent folder | download | duplicates (2)
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
From: Carlos Henrique Lima Melara <charlesmelara@outlook.com>
Subject: Removes Qt resource system usage for font that is packaged
Forwarded: not-needed
Last-Update: 2023-06-11
---
 src/fonts.qrc | 1 -
 src/main.cpp  | 1 -
 2 files changed, 2 deletions(-)

diff --git a/src/fonts.qrc b/src/fonts.qrc
index 960ca97..8aba725 100644
--- a/src/fonts.qrc
+++ b/src/fonts.qrc
@@ -1,6 +1,5 @@
 <RCC>
     <qresource prefix="/">
         <file>fonts/OpenMoji-Color.ttf</file>
-        <file>fonts/NotoColorEmoji.ttf</file>
     </qresource>
 </RCC>
diff --git a/src/main.cpp b/src/main.cpp
index d4f7d7d..db04943 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -75,7 +75,6 @@ static void addEmojiSubstitutions()
 
     // Provide OpenMoji font for a safe fallback
     QFontDatabase::addApplicationFont(":/fonts/OpenMoji-Color.ttf");
-    QFontDatabase::addApplicationFont(":/fonts/NotoColorEmoji.ttf");
 
     QStringList emojiFonts = {
         // Use system fonts on windows/mac