Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3e41ac2

Browse filesBrowse files
committed
add fonts to the package
1 parent 31df2d8 commit 3e41ac2
Copy full SHA for 3e41ac2

File tree

Expand file treeCollapse file tree

1 file changed

+11
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+11
-0
lines changed

‎setup.py

Copy file name to clipboardExpand all lines: setup.py
+11Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,17 @@ def main():
167167
rearrange_cmake_output_data["cv2.qt.plugins.platforms"] = [
168168
(r"lib/qt/plugins/platforms/libqxcb\.so")
169169
]
170+
171+
# add fonts for Qt5
172+
fonts = []
173+
for file in os.listdir("/usr/share/fonts/dejavu"):
174+
if file.endswith(".ttf"):
175+
fonts.append(
176+
(r"/usr/share/fonts/dejavu/%s\.ttf" % file.split(".")[0])
177+
)
178+
179+
rearrange_cmake_output_data["cv2.qt.fonts"] = fonts
180+
170181
if sys.platform == "darwin":
171182
rearrange_cmake_output_data["cv2.qt.plugins.platforms"] = [
172183
(r"lib/qt/plugins/platforms/libqcocoa\.dylib")

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.