Created
April 12, 2015 10:06
-
-
Save c-garcia/5b5041b607730d3348bf to your computer and use it in GitHub Desktop.
Register a TrueType font from a file
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
;; From the REPL | |
(import '(java.awt GraphicsEnvironment Font) java.io.File) | |
(.. (GraphicsEnvironment/getLocalGraphicsEnvironment) | |
(registerFont (Font/createFont Font/TRUETYPE_FONT | |
(File. "font.ttf")))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment