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'