B4J Question Font Family changed on different PC

maleche

Member
Licensed User
When using JavaFX Scene Builder and selecting Script MT Bold for the Font, everything work well on my PC. When I copy the .jar file to another windows 8.1 machine, the font changed.
I need some tips on the correct syntax for the label style. This did not work for me;
lblQuote.Style = "-fx-font-family: Script MT Bold;"
I will try and force the font family to port over. I'm not familiar with Java and the all the tips and user's guide did not show and example for the Font Family, mostly size and color.
Warm regards,
 

maleche

Member
Licensed User
I ran the FontList program you published. It verified that the font does not exists. Thanks.
How can I check if the font exists, then change the font to an existing one of a selected list?
Thanks!
 

maleche

Member
Licensed User
Thanks for the response Erel!
I'm unsure of the syntax for the command. What is the syntax to change the font type (not size)?
lblQuote.Style = "-fx-font-family: Script MT Bold;" (assuming it is loaded)
lblQuote.Style = "fx.Font.LoadFont=Script MT Bold"?

Thanks,
 
Top