html - How to add new fonts in CSS for local testing -
i'm making webpage imports needed fonts google fonts way:
@import url(http://fonts.googleapis.com/css?family=italianno);
the problem every time load page need connected internet , takes time load font. there way can load font offline because while testing page i'll refreshing countless number of times , might not connected internet time , don't want wait 3-5 seconds every time font loaded.
i tried installing font in system , using in css. didn't work.
hey make fonts folder css folder , put desired font there. in css call code example meriyoui font mentioned below. load font onto app.
for need download font , put in fonts folder. (pre-requisite).try using web safe fonts.
hope helps.
css
@font-face { font-family: 'meiryo ui'; font-weight: normal; font-style: normal; src: url('../fonts/meiryoui.ttf'); }
Comments
Post a Comment