I'm trying to show MaterialIcons on my JavaFx WebBrowser using webEngine, but it just shows the description of the icon. Icons doesn't work also on IE and Safari. Does anyone know how to make it readable?
Asked
Active
Viewed 511 times
1
-
I tried a quick test, and it seems to work using numerical character references, but not using ligatures. – James_D Mar 10 '18 at 19:28
-
Isn't there a way to make it work with ligatures? I have a lot of Icons in my website.. – Kristian di Lillo Mar 10 '18 at 19:32
1 Answers
0
I also struggle on that one, so for those who are intersted to know, JavaFX is only compatible with MaterialIcons written with numerical character references as James_D stated and not with ligatures format.
So insted of writing : <i class="material-icons">add</i>
You should write : <i class="material-icons"></i>
Here is cheatsheet link for converting Material Icon ligatures to their respective numerical character reference : https://github.com/google/material-design-icons/blob/master/iconfont/codepoints

Pierre Capo
- 1,033
- 9
- 23