Skip to content

Commit

Permalink
Revert "Another attempt at fixing #29"
Browse files Browse the repository at this point in the history
This reverts commit c74a071.
  • Loading branch information
nickzoic committed Mar 19, 2024
1 parent 349a64d commit 8aa6392
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions countess/gui/unicode.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
import tkinter as tk
import tkinter.font as tk_font

# We found a shared remote system where these unicode icons are
# displayed as escaped strings, literally "\u2795" on what should
# be the "+" button. This is very confusing, so as a workaround
# check if the string "\u2795" (one unicode codepoint) renders over
# three em wide, in which case the Unicode support is fonts are broken.

# Tcl support for unicode starts in version 8.1, April 1999.

def unicode_is_broken():
root = tk.Tk()
Expand All @@ -15,8 +9,7 @@ def unicode_is_broken():
root.destroy()
return is_broken


if unicode_is_broken():
if tk.TclVersion < 8.1:
UNICODE_CHECK = "Y"
UNICODE_UNCHECK = "N"
UNICODE_CROSS = "X"
Expand Down

0 comments on commit 8aa6392

Please sign in to comment.