Skip to content

Instantly share code, notes, and snippets.

@shawn42
Created November 25, 2009 12:34
Show Gist options
  • Save shawn42/242676 to your computer and use it in GitHub Desktop.
Save shawn42/242676 to your computer and use it in GitHub Desktop.
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