Skip to content

Commit

Permalink
Update pyqt5_momotranslator.py
Browse files Browse the repository at this point in the history
  • Loading branch information
alicewish committed Oct 23, 2023
1 parent ffee078 commit 8703794
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pyqt5_momotranslator.py
Original file line number Diff line number Diff line change
Expand Up @@ -8995,10 +8995,10 @@ def steps():
font_filename = font_dic.get(global_font_name)
msyh_font_ttc = system_font_dic.get(font_filename)
logger.debug(f'{msyh_font_ttc=}')
msyh_font20 = ImageFont.truetype(msyh_font_ttc.as_posix(), 20)
msyh_font30 = ImageFont.truetype(msyh_font_ttc.as_posix(), 30)
msyh_font60 = ImageFont.truetype(msyh_font_ttc.as_posix(), 60)
msyh_font100 = ImageFont.truetype(msyh_font_ttc.as_posix(), 100)
msyh_font20 = ImageFont.truetype(msyh_font_ttc, 20)
msyh_font30 = ImageFont.truetype(msyh_font_ttc, 30)
msyh_font60 = ImageFont.truetype(msyh_font_ttc, 60)
msyh_font100 = ImageFont.truetype(msyh_font_ttc, 100)

for mode in mode_list:
globals()[mode] = (do_mode == mode)
Expand Down

0 comments on commit 8703794

Please sign in to comment.