问题
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?
回答1:
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
来源:https://stackoverflow.com/questions/49212903/materialize-icons-doesnt-work-in-javafx-browser