font = pygame.font.SysFont("freesansbold.ttf", 30) # 30:font size
text = font.render("content", True, (0,0,0)) # (0,0,0) color of font
self.window.blit(text,(10,10)) # (10,10) rect left top
版权声明:本文为ao1886原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。
font = pygame.font.SysFont("freesansbold.ttf", 30) # 30:font size
text = font.render("content", True, (0,0,0)) # (0,0,0) color of font
self.window.blit(text,(10,10)) # (10,10) rect left top