jdf / Processing.py-Bugs

A home for all bugs and feature requests about Python Mode for the Processing Development Environment.
41 stars 8 forks source link

processing python mode can't output Chinese character. #280

Open EIP-Shine opened 4 years ago

EIP-Shine commented 4 years ago

python mode display Chinese word

here is my code

size(500,500) myFont=createFont("宋体",40) textFont(myFont) fill(0) text("hello,中文",100,200)

jdf commented 4 years ago

Perhaps try using a unicode literal:

size(500,500)
myFont=createFont(u"宋体",40)
textFont(myFont)
fill(0)
text(u"hello,中文",100,200)