Created
September 16, 2014 17:33
-
-
Save guigarage/6ea110b098222ae0c83c to your computer and use it in GitHub Desktop.
Add a custom font to a JavaFX application by using CSS
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
@font-face { | |
font-family: 'Roboto'; | |
src: url('Roboto-Medium.ttf'); | |
} | |
.text { | |
-fx-font-family: "Roboto"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
if someone reaches here, can try this one too: https://stackoverflow.com/a/12181948/2190689