Skip to content

Commit

Permalink
Implement logic for deciding when to use freetype
Browse files Browse the repository at this point in the history
  • Loading branch information
gasull committed Apr 7, 2021
1 parent c3e8c9a commit d77929a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion electroncash_gui/qt/transaction_dialog.py
Expand Up @@ -26,6 +26,7 @@
import copy
import datetime
import json
import sys
import time

from enum import Enum, auto
Expand All @@ -35,6 +36,7 @@
from PyQt5.QtWidgets import *

from electroncash import cashacct
from electroncash import get_config
from electroncash import web

from electroncash.address import Address, PublicKey, ScriptOutput
Expand All @@ -48,7 +50,11 @@

dialogs = [] # Otherwise python randomly garbage collects the dialogs...

if False:
should_use_freetype = False
if sys.platform in {"cygwin", "win32"}:
should_use_freetype = bool(get_config().get("windows_qt_use_freetype"))

if should_use_freetype:
# NB: on Qt for Windows the 'ⓢ' symbol looks aliased and bad. So we do this
# for windows.
SCHNORR_SIGIL = "(S)"
Expand Down

0 comments on commit d77929a

Please sign in to comment.