Created
November 25, 2009 12:34
-
-
Save shawn42/242676 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
TTF.setup | |
full_name = "/path/to/font.ttf" | |
size = 20 | |
font = TTF.new(full_name, size) | |
text_image = font.render "hey there", true, [250,250,250,255] | |
text_image.blit screen |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment