css - how md-icons are rendered on browser -


i using material2 , material icons in project. want know how these named icons rendered in browser. have used

<button md-raised-button><md-icon>mode_edit</md-icon></button> 

and in browser, if inspect element

<md-icon class="mat-icon material-icons" role="img" aria-hidden="true">mode_edit</md-icon> 

here classes used

.mat-icon {     background-repeat: no-repeat;     display: inline-block;     fill: currentcolor;     height: 24px;     width: 24px; }  .material-icons {     font-family: 'material icons';     font-weight: normal;     font-style: normal;     font-size: 24px;     line-height: 1;     letter-spacing: normal;     text-transform: none;     display: inline-block;     white-space: nowrap;     word-wrap: normal;     direction: ltr;     -webkit-font-feature-settings: 'liga';     -webkit-font-smoothing: antialiased; } 

but not able understand how these icons rendered on ui? know md-icons font icons vector images. can explain way rendered?

this feature called ligatures allows render icons using name.

you can find more details in below link

https://alistapart.com/article/the-era-of-symbol-fonts

http://google.github.io/material-design-icons/#icon-font-for-the-web


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -