소스 검색

字体大小调整

zhangyong 1 년 전
부모
커밋
2354d7818f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      video_stitching/video_stitching.py

+ 1 - 1
video_stitching/video_stitching.py

@@ -202,7 +202,7 @@ class VideoStitching():
                 # /usr/share/fonts/truetype/wqy/wqy-zenhei.ttc 服务器地址
                 Common.logger().info(f"字幕:{text}")
                 sub = editor.TextClip(text, font="/usr/share/fonts/truetype/wqy/wqy-zenhei.ttc",
-                                      fontsize=30, color="black").set_duration(end - start).set_start(
+                                      fontsize=18, color="black").set_duration(end - start).set_start(
                     start).set_position(
                     ("center", final_height - 60)).set_opacity(0.8)
                 subtitle_clips.append(sub)