[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Multi-byte character font



I claim no experience with this, but if it seems that combining Chinese full-width and Latin half-width characters is the problem, render them separately:

ChinesePart = font.render("你好".decode("big5"),False,fg,bg)
LatinPart = font.render("Python",False,fg,bg)
screen.blit(ChinesePart, (10, 100))
screen.blit(LatinPart, (10+ChinesePart.get_width(), 100))