Working on a program for school. Finished the required part, now I'm just doing stuff for fun.
Basically you have to write a program which randomly draws a card from a deck, and then prints out the face value and suit. Easy -- took me like 5 minutes.
I'm trying to add a visual aspect to the assignment, using Unicode characters. I found these, and have written a bit of code to select the correct Unicode character given the card and suit. The only issue is that when the character is printed out, it's tiny. It's maybe two millimeters tall on my screen, which is nowhere near big enough to see the face of the card.
I've been searching for hours for some way of increasing the size of the output, to no avail. I found this snippet of code in my searching, but it doesn't seem to do anything (I am on Windows 10 Pro, by the way).
import ctypes
LF_FACESIZE = 32
STD_OUTPUT_HANDLE = -11
class COORD(ctypes.Structure):
_fields_ = [("X", ctypes.c_short), ("Y", ctypes.c_short)]
class CONSOLE_FONT_INFOEX(ctypes.Structure):
_fields_ = [("cbSize", ctypes.c_ulong),
("nFont", ctypes.c_ulong),
("dwFontSize", COORD),
("FontFamily", ctypes.c_uint),
("FontWeight", ctypes.c_uint),
("FaceName", ctypes.c_wchar * LF_FACESIZE)]
font = CONSOLE_FONT_INFOEX()
font.cbSize = ctypes.sizeof(CONSOLE_FONT_INFOEX)
font.nFont = 12
font.dwFontSize.X = 11
font.dwFontSize.Y = 18
font.FontFamily = 54
font.FontWeight = 400
font.FaceName = "Lucida Console"
handle = ctypes.windll.kernel32.GetStdHandle(STD_OUTPUT_HANDLE)
ctypes.windll.kernel32.SetCurrentConsoleFontEx(
handle, ctypes.c_long(False), ctypes.pointer(font))
I was wondering if anyone had any insight or ideas on how I could go about making the characters larger. I've tried using a Turtle to draw the characters, but unfortunately it doesn't support the characters I want to use.

