dimanche 16 août 2015

Sams. Gear S watch-face WEB APP , problem when implentation MaterialDisign Google fnt



Hi there,

"Samsung Gear S watch-face S watch-face, problem when implentation MaterialDisign Google fonts "

Gear S watch-face on 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:
...
THAT WORK :

<div class="material-icons batteryyc" id="batteryy">&#xE1A3;</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">&#xE1A3;</div>

..

document.getElementById("batteryy").textContent ="&#XE1A5;";

...


Why on screen browser work as one old IE?


Google DOCs:

https://www.google.com/design/icons/..._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">&#xE87C;</i>

etc



PLZ HLP :confused:



Aucun commentaire:

Enregistrer un commentaire