Skip to content

Instantly share code, notes, and snippets.

@asketchyfish
asketchyfish / gist:2f3e45cd1b80829dc272
Created July 17, 2015 19:59
Make TTF font into images
#!/usr/bin/env python
import Image, ImageFont, ImageDraw
# use a truetype font
font = ImageFont.truetype("font.ttf", 200)
im = Image.new("RGBA", (300, 300))
draw = ImageDraw.Draw(im)
W, H = (300,300)

Keybase proof

I hereby claim:

  • I am asketchyfish on github.
  • I am asketchyfish (https://keybase.io/asketchyfish) on keybase.
  • I have a public key whose fingerprint is DE46 FE23 3379 CC78 723A 7C29 A3D8 AE76 6916 F69F

To claim this, I am signing this object: