Unicode fonts in PyGame
问题 How can I display Chinese characters in PyGame? And what's a good free/libre font to use for this purpose? 回答1: pygame uses SDL_ttf for rendering, so you should be in fine shape as rendering goes. unifont.org appears to have some extensive resources on Open-Source fonts for a range of scripts. I grabbed the Cyberbit pan-unicode font and extracted the encluded ttf. The folowing 'worked on my machine' which is a Windows Vista Home Basic and Python 2.6: # -*- coding: utf-8 -*- import pygame, sys