Parcourir la source

测试使用字体

zhangyong il y a 1 an
Parent
commit
ba435cab7a
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      video_stitching/video_stitching.py

+ 1 - 1
video_stitching/video_stitching.py

@@ -187,7 +187,7 @@ class VideoStitching():
                     end = editor.cvsecs(end)
                 text = cls.split_text(text, 10)
                 # /System/Library/Fonts/Hiragino Sans GB.ttc 本地字体
-                sub = editor.TextClip(text, font="/usr/share/fonts/truetype/liberation/LiberationSans-Bold.ttf",
+                sub = editor.TextClip(text, font="/usr/share/fonts/truetype/arphic/ukai.ttc",
                                       fontsize=30, color="black").set_duration(end - start).set_start(
                     start).set_position(
                     ("center", final_height - 80)).set_opacity(0.8)