Skip to content
Permalink
32d66f84c3
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
17 lines (14 sloc) 432 Bytes
import shutil
# from PIL import ImageFont, ImageDraw, Image
# # 定义字体文件路径
# font_file = "D:/font-test/1/3352-0"
# # 尝试加载字体
# try:
# font = ImageFont.truetype(font_file)
# except Exception as e:
# print(f"无法加载字体文件 '{font_file}': {e}")
# sys.exit(1)
# # 读取字体名称
# font_name = font.getname()
# print(f"字体名称:{font_name}")
shutil.move("wtf.ttf", "demo2.txt")