|
@@ -2308,8 +2308,8 @@ class generatePictureCodeView(TemplateView):
|
|
|
|
|
|
# --------生成随机验证码,设置字体格式,大小等属性------------
|
|
|
draw = ImageDraw.Draw(img)
|
|
|
- #kumo_font = ImageFont.truetype("consola.ttf", 40, encoding="unic") # 设置字体
|
|
|
#kumo_font = ImageFont.truetype("simsun.ttc", 40, encoding="unic") # 设置字体
|
|
|
+ #kumo_font = ImageFont.truetype("Arial.ttf", 40, encoding="unic") # 设置字体
|
|
|
kumo_font = ImageFont.truetype("arial.ttf", 40, encoding="unic") # 设置字体
|
|
|
valid_code_str = ''
|
|
|
for i in range(5):
|