Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Unicode fonts in java FX?

how to use unicode fonts in java fx combobox? The resaon is font type like windings are not getting displayed on combobox. Can anyone help out on this?

like image 886
Prathmesh Patil Avatar asked Oct 29 '25 16:10

Prathmesh Patil


1 Answers

For unicode symbols use "\u+code" , e.g. "\u2705".

Fonts are specified with -fx-font-family: Fontname; More examples for (external) fonts can be found here.

However, according to the bug tracker fonts like wingdings can't be used. But there are some similar symbols in unicode: link

like image 129
DasMoeh Avatar answered Oct 31 '25 11:10

DasMoeh