Skip to content

Instantly share code, notes, and snippets.

  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
$10.00 // ttf -> png
Gig Offer: $10.00 // ttf -> png
(defn font->png [ttf-font-name]
...
)
ttf-font-name = string, pointing to a ttf file on the filesystem
output:
(really a side effect)
function writes out.png
out.png = 1600 x 800
where
for y in (range 8)
for x in (range 16)
char (y*16+x) is drawn at (x*100, y*100)
rendering needs to be done via Java AWT
plese don't use external dependencies (besides Java API)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment