Created
September 25, 2017 08:39
-
-
Save Yasushi/0c9fc8fea212aca7da45557d11b410df to your computer and use it in GitHub Desktop.
print available fonts clojure
This file contains hidden or 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
(import java.awt.GraphicsEnvironment) | |
(def ge (GraphicsEnvironment/getLocalGraphicsEnvironment)) | |
;;(def fs (.getAllFonts ge)) | |
;;(dorun (->> fs (map #(.getName %)) sort (map println))) | |
(dorun (->> ge .getAvailableFontFamilyNames sort (map println))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment