Content-Length: 264373 | pFad | http://github.com/opencv/opencv-python/commit/902a94edfd9533c892cd76cc785cf068787c143f

30 add fonts to the package · opencv/opencv-python@902a94e · GitHub
Skip to content

Commit 902a94e

Browse files
committed
add fonts to the package
1 parent eaa3ca7 commit 902a94e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

setup.py

+11
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,17 @@ def main():
170170
rearrange_cmake_output_data["cv2.qt.plugins.platforms"] = [
171171
(r"lib/qt/plugins/platforms/libqxcb\.so")
172172
]
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+
173184
if sys.platform == "darwin":
174185
rearrange_cmake_output_data["cv2.qt.plugins.platforms"] = [
175186
(r"lib/qt/plugins/platforms/libqcocoa\.dylib")

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/opencv/opencv-python/commit/902a94edfd9533c892cd76cc785cf068787c143f

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy