Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How do add custom font in JRE for JAVA FX

3518962Sep 11 2017 — edited Oct 3 2017

hi Guys.

The default JRE of the JDK package has the font files  "\jdk1.8.0_121\jre\lib\fonts"  has the  Lucida Family fonts.

I am created the JAVA FX JAR application such as "sample.jar".

Now i am trying to run that file in the ARM board. But during the Development phase i have given the Font name as "Helvetica" in the css file. And i placed the font files inside the JRE font folder.

But while i running the JAR application in ARM Board it is taking the system default font and not "Helvetica" font.

May i know how to add the custom font in JRE package,

and how to redirect the my JavaFx application  to take the user described font ?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 31 2017
Added on Sep 11 2017
2 comments
4,668 views