Prathmesh Patil
Prathmesh Patil

Reputation: 65

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?

Upvotes: 4

Views: 1801

Answers (1)

DasMoeh
DasMoeh

Reputation: 411

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

Upvotes: 2

Related Questions