We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi,
I'm trying to draw special characters / symbols with the text()
function such as:
'■', '□', '▢', '▲', '△', '▼', '▽', '◆', '○', '●', 'Δ', 'ʊ', '™', '©', '®', '¿', '¡', '½', '⅓', '⅔', '¼', '¾', '⅛', '⅜', '⅝', '⅞', '℅', '№', '∃', '∩', '∀','Ξ', 'Γ', 'ɐ', 'ə', 'ɘ', 'ε', 'β', 'ɟ', 'ɥ', 'ɯ', 'ɔ', 'и', 'ɹ', 'ʁ', 'я', 'ʌ', 'ʍ', 'λ', 'ч', '∞', 'Σ', 'Π', 'η', 'α','·','¨','…', '¦', '┅', '┆', '┈', '┊',' ╱',' ╲', '╳', '¯', '–', '—','≡', '░', '▒', '▓', '█', '▌', '▐', '▀', '▄', '╭', '╮', '╯', '╰','│', '┤', '╡', '╢', '╖', '╕', '╣', '║', '╝', '╜',' ╛', '┐', '└', '┴', '┬', '├', '─', '┼', '╞', '╟', '╚', '╔', '╩', '╦', '╠', '═', '╬', '╧', '╨', '╤', '╥', '╙', '╘', '╒', '╓', '╫', '╪', '┘', '┌', 'Σ', '♠', 'Ω', '♣', '♥', '♦', '☼', '☻'...
However most of them (90%) don't seem to be recognized. All I have instead is the letter 'â' printed on the screen.
Is there a way to draw all these symbols ?
Thanks
Answers
http://Studio.ProcessingTogether.com/sp/pad/export/ro.9hlrt8LyDd9uA
Hey GoToLoop, thanks for your answer. Strangely, the code works in Java but not in Python mode.
Any idea what could possibly prevent this to work in Python mode ?
Great ! Thank you GoToLoop.
Apologies @GoToLoop, I still have a problem regarding unicode text. I'm not writing text directly inside the text function (as in the example) but call an item randomly in a list of strings (here named "symbols"):
The last line gives me the following error message:
Then I though this would do the trick:
But unfortunately I still get the same error message. Do you have an idea how to solve this problem in Python ?
Thanks a lot. :)