File: Use-Roboto-font-from-Debian-package.patch

package info (click to toggle)
streamdeck-ui 2.0.15-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,456 kB
  • sloc: python: 2,167; makefile: 3
file content (34 lines) | stat: -rw-r--r-- 1,214 bytes parent folder | 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
From 5154cb25c6d5a10c0f1bf90a1ca7709c29286434 Mon Sep 17 00:00:00 2001
From: Benjamin Drung <bdrung@debian.org>
Date: Fri, 2 Jul 2021 21:24:31 +0200
Subject: Use Roboto font from Debian package

Forwarded: not-needed
Signed-off-by: Benjamin Drung <bdrung@debian.org>
---
 setup.py                | 2 +-
 streamdeck_ui/config.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,7 @@
 ['streamdeck_ui', 'streamdeck_ui.display']
 
 package_data = \
-{'': ['*'], 'streamdeck_ui': ['fonts/roboto/*', 'icons/*']}
+{'': ['*'], 'streamdeck_ui': ['icons/*']}
 
 install_requires = \
 ['CairoSVG>=2.5.2,<3.0.0',
--- a/streamdeck_ui/config.py
+++ b/streamdeck_ui/config.py
@@ -3,7 +3,7 @@
 
 PROJECT_PATH = os.path.dirname(os.path.abspath(__file__))
 LOGO = os.path.join(PROJECT_PATH, "logo.png")
-FONTS_PATH = os.path.join(PROJECT_PATH, "fonts")
+FONTS_PATH = "/usr/share/fonts/truetype/roboto/unhinted/RobotoTTF"
 DEFAULT_FONT = os.path.join("roboto", "Roboto-Regular.ttf")
 STATE_FILE = os.environ.get("STREAMDECK_UI_CONFIG", os.path.expanduser("~/.streamdeck_ui.json"))
 CONFIG_FILE_VERSION = 1  # Update only if backward incompatible changes are made to the config file