Skip to content
This repository has been archived by the owner on Mar 15, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:rupor-github/fb2mobi
Browse files Browse the repository at this point in the history
  • Loading branch information
rupor-github committed Jan 21, 2018
2 parents 4e95aab + fc9ada8 commit 041355d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions ui/fontdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ def update_db(self):
if os.path.splitext(file)[1].lower() in ['.ttf', '.otf']:
font_file = os.path.join(self.fonts_path, file)
try:
if sys.platform == 'win32':
font = ImageFont.truetype(font_file.encode('cp1251'), 10)
else:
font = ImageFont.truetype(font_file, 10)
font = ImageFont.truetype(font_file, 10)
if font.font.family not in self.families:
self.families[font.font.family] = {}
self.families[font.font.family][font.font.style] = file
Expand Down
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

WINDOWS = platform.system().lower() == "windows"

VERSION = u'3.6.46'
VERSION = u'3.6.45'

0 comments on commit 041355d

Please sign in to comment.