Created
March 11, 2018 07:09
-
-
Save hitme/7af6a3e00d11b54392ffeb75e40a3178 to your computer and use it in GitHub Desktop.
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 characters
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") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment