Skip to content

Commit

Permalink
fix font bold config
Browse files Browse the repository at this point in the history
  • Loading branch information
scrpr committed Mar 7, 2024
1 parent 05a8957 commit eccbf7b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def traditionalize_ass(input_file, output_file, user_pre_replace=""):
for i in range(len(doc.styles)):
if doc.styles[i].fontname == "方正FW筑紫黑 简 E":
doc.styles[i].fontsize = "75"
doc.styles[i].bold = "-1"
doc.styles[i].fontname = doc.styles[i].fontname.replace("方正FW筑紫黑 简 E", "Source Han Sans TC").replace("思源黑体", "Source Han Sans TC").replace("思源宋体", "Source Han Serif TC").replace("Source Han Sans SC", "Source Han Sans TC").replace("Source Han Serif SC", "Source Han Serif TC")

os.makedirs(os.path.dirname(output_file), exist_ok=True)
Expand Down

0 comments on commit eccbf7b

Please sign in to comment.