We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eaa3ca7 commit 902a94eCopy full SHA for 902a94e
setup.py
@@ -170,6 +170,17 @@ def main():
170
rearrange_cmake_output_data["cv2.qt.plugins.platforms"] = [
171
(r"lib/qt/plugins/platforms/libqxcb\.so")
172
]
173
+
174
+ # add fonts for Qt5
175
+ fonts = []
176
+ for file in os.listdir("/usr/share/fonts/dejavu"):
177
+ if file.endswith(".ttf"):
178
+ fonts.append(
179
+ (r"/usr/share/fonts/dejavu/%s\.ttf" % file.split(".")[0])
180
+ )
181
182
+ rearrange_cmake_output_data["cv2.qt.fonts"] = fonts
183
184
if sys.platform == "darwin":
185
186
(r"lib/qt/plugins/platforms/libqcocoa\.dylib")
0 commit comments