Created
March 11, 2018 07:09
-
-
Save hitme/7af6a3e00d11b54392ffeb75e40a3178 to your computer and use it in GitHub Desktop.
Revisions
-
hitme created this gist
Mar 11, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ import pygame pygame.init() text = "庞中华" font = pygame.font.Font("/path/to/庞中华行书.ttf", 25) rtext = font.render(text, True, (0, 0, 0), (255, 255, 255)) pygame.image.save(rtext, "t.gif")