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 31df2d8 commit 3e41ac2Copy full SHA for 3e41ac2
setup.py
@@ -167,6 +167,17 @@ def main():
167
rearrange_cmake_output_data["cv2.qt.plugins.platforms"] = [
168
(r"lib/qt/plugins/platforms/libqxcb\.so")
169
]
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
181
if sys.platform == "darwin":
182
183
(r"lib/qt/plugins/platforms/libqcocoa\.dylib")
0 commit comments