Skip to content

Commit

Permalink
Use 'fontconfig' PangoCairo backend on Windows
Browse files Browse the repository at this point in the history
Fixes #2150
  • Loading branch information
mathiascode committed Aug 15, 2022
1 parent 667329d commit 83e06e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pynicotine/gtkgui/__init__.py
Expand Up @@ -96,6 +96,10 @@ def run_gui(core, trayicon, hidden, bindip, port, ci_mode, multi_instance):
os.environ["GI_TYPELIB_PATH"] = os.path.join(executable_folder, "lib/typelibs")
os.environ["GSETTINGS_SCHEMA_DIR"] = os.path.join(executable_folder, "lib/schemas")

if sys.platform == "win32":
# 'win32' PangoCairo backend on Windows is too slow, use 'fontconfig' instead
os.environ["PANGOCAIRO_BACKEND"] = "fontconfig"

from pynicotine.logfacility import log
error = check_gui_dependencies()

Expand Down

0 comments on commit 83e06e3

Please sign in to comment.