Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why Google Material Icons Can't be Shown on Mobile

I am using Materializecss and it uses Google design icons. On some mobiles, Google Material-Icons can'be shown. What is caused it?

enter image description here

like image 626
Kamuran Sönecek Avatar asked Dec 25 '22 15:12

Kamuran Sönecek


1 Answers

The problems is occurred because of text-rendering property. Text-rendering is not a CSS standart but it allows use to choose text quality.

In google material css this property comes with it's default value . If you add this style you will solve the problem :

.material-icons {
    text-rendering: optimizeLegibility;
}

By this definition, we say to the browser that, "emphasize legibility over rendering speed and geometric precision."

https://css-tricks.com/almanac/properties/t/text-rendering/

like image 114
Kamuran Sönecek Avatar answered Jan 05 '23 21:01

Kamuran Sönecek