From fc9ada835dd39bd69578933bc47ac6106e830f08 Mon Sep 17 00:00:00 2001 From: dnkorpushov Date: Tue, 19 Dec 2017 17:21:49 +0300 Subject: [PATCH] Rollback to 3.6.45 version --- ui/fontdb.py | 5 +---- version.py | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/ui/fontdb.py b/ui/fontdb.py index 27c213b..f1148bc 100644 --- a/ui/fontdb.py +++ b/ui/fontdb.py @@ -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 diff --git a/version.py b/version.py index 189493b..bb5799e 100644 --- a/version.py +++ b/version.py @@ -4,5 +4,5 @@ WINDOWS = platform.system().lower() == "windows" -VERSION = u'3.6.46' +VERSION = u'3.6.45'