atarw / material-ui-swing

A modern, Material Design UI for Java Swing
MIT License
653 stars 86 forks source link

Material UI Swing doesn't supports emojis #93

Open ThomasLachaux opened 4 years ago

ThomasLachaux commented 4 years ago

Hey,

I've just tried this library, it's awesome but I use emojis (like ♥) with Swing and it seems that the library doesn't support them.

Is it due to the font ?

Have a nice day

vincenzopalazzo commented 4 years ago

Hi @ThomasLachaux,

I've just tried this library, it's awesome

Thank for your kind words

Is it due to the font?

I think yes, this is the problem of the personal font (Noto Sans) but now I want to schedule the feature to support the fonts, like this.

Also, We are open-source programmers and we will have need the time for adding this support, for the moment I should have a solution to support the emoji via MaterialTheming.

Is it possible to customize the font developed a new theme, I have described the same solution in this issue.

to conclude you can create a personal theme and override the method installFonts() inside it you can set all your preferer font, I want suggestions you to use the system font, they should be support the emoji.

If you have ane problem, you can find help from me.

PS: I hope that I helped you.

Good day.

metteo commented 4 years ago

I had a similar issue. Tried to use media control symbols in labels but when switched to Material L&F they showed up as empty rectangles. Had to switch to JIconFont as a workaround.

vincenzopalazzo commented 4 years ago

Hi @metteo,

Thanks for this informations, unfortunately, the personal font used inside the library doesn't support emoji but you can resolve the problem with a custom theme and you can load the native fonts

Described inside this issue

Unfortunately at the moment is not scheduled to change the font inside the library.