On 8/3/15, 9:13 AM, Tobias Bley wrote:
Hi,does anybody know how to use or load the „Helvetica Neue Light“ font in JavaFX? Font font = Font.font("Helvetica Neue", FontWeight.EXTRA_LIGHT,FontPosture.REGULAR, 16.0); => gives me the medium style font: font = Font[name=Helvetica Neue Medium, family=Helvetica Neue, style=Medium, size=16.0] Regards, Tobi
I wrote this wiki page up a while back, while trying to understand fonts .... :-) https://wiki.openjdk.java.net/display/OpenJFX/Font+Setup A lot of fonts depend on your platform too, which you did not mention. Adding -Dprism.debugfonts=true can give some good hints. If you have suggestions to add to the page let me know. -- David Hill<[email protected]> Java Embedded Development "A man's feet should be planted in his country, but his eyes should survey the world." -- George Santayana (1863 - 1952)
