I faced the same problem. The following approach helped me:
- I am having problems with font icons provided by css materialization. It seems that there are some problems with font icons in case you yourself accept it. I will clarify my answer with the exact error number. Therefore, to fix this, I downloaded and used the font icons provided by Google and followed the steps above here .
Be sure to add the following to your CSS:
.material-icons { font-family: 'Material Icons'; font-weight: normal; font-style: normal; font-size: 24px; display: inline-block; line-height: 1; text-transform: none; letter-spacing: normal; word-wrap: normal; white-space: nowrap; direction: ltr; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; -moz-osx-font-smoothing: grayscale; font-feature-settings: 'liga'; }
One more thing to make sure you use all the google font formats: WOFF2, WOFF, Truetype, EOT, and even SVG, if possible, to ensure browser compatibility.
If you donβt own font icons, just try including the above CSS code. I have not tried this with CDN, but it worked for me for independent font icons. So, let's all find out how everything goes together, so if this is not so, we can try an alternative solution.
source share