$10.00 // ttf -> png
This file contains 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
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