"Samsung Gear S watch-face S watch-face, problem when implentation MaterialDisign Google fonts "
Gear S watch-face, Tizen WEB APP
Try to make implentation MaterialDisign Google fonts and have a some problems:
CSS
.......
@font-face {
font-family: 'Material Icons';
font-style: normal;
font-weight: 400;
src: url(../css/fonts/MaterialIcons-Regular.eot); /* For IE6-8 */
src: local('Material Icons'),
local('MaterialIcons-Regular'),
url(../css/fonts/MaterialIcons-Regular.woff2) format('woff2'),
url(../css/fonts/MaterialIcons-Regular.woff) format('woff'),
url(../css/fonts/MaterialIcons-Regular.ttf) format('truetype');
}
.material-icons {
font-family: 'Material Icons';
font-weight: normal;
font-style: normal;
font-size: 36px; /* Preferred icon size */
display: inline-block;
width: 1em;
height: 1em;
line-height: 1;
text-transform: none;
letter-spacing: normal;
word-wrap: normal;
position: absolute;
left: 150px;
top: 100px;
color: rgba(255, 255, 255, 1);
text-rendering: optimizeSpeed;
}
...
HTML:
...
WORK :
<div class="material-icons batteryyc" id="batteryy"></div>
NOT WORK (crash CSS of the page app):
<div class="material-icons batteryyc" id="batteryy">battery_charging_full</div>
..
Not WORK: JS+HTML:
.....
<div class="material-icons md-18 batteryyc" id="batteryy"></div>
..
document.getElementById("batteryy").textContent ="";
...
Why?
Google DOCs:
https://www.google.com/design/icons/#ic_battery_charging_full
http://google.github.io/material-design-icons/
It’s easy to incorporate icons into your web page. Here’s a small example:
<i class="material-icons">face</i>
For browsers that do not support ligatures, fall back to specifying the icons using numeric character references like the example below:
<i class="material-icons"></i>
etc