I have created a custom font and mapped a few new characters to unmapped unicode codepoints. This works fairly well, but these characters are seemingly randomly getting converted into their codepoint representaiton ('\u2fd6' for example) instead of showing the custom font.
I've isolated the issue to a printing error when printing tuples and arrays. (perhaps more occations too.)
The following code shows when it works and when it does not. (Remember I have a custom font and do se a character where the box is, which is the desired behaivour):
char = ""
print(char) # Ok
tuple = ("a", "")
print(tuple) # not Ok
print(tuple[0], tuple[1]) # Ok
array = ["a", ""]
print(array) # not Ok
print(array[0], array[1]) # Ok
Procuces the following output in the terminal:
('a', '\u2fd6')
a
['a', '\u2fd6']
a
I don't even know where to start. Is this a python issue? Any ideas how to avoid this conversion to unicode codepoints?