javascript - Is it possible to embed a custom font on to your site/install it on your host? -
i've researched fair bit , answer i've found there limited number of web fonts available seems bit old fashioned me. not possible upload custom font web host , use javascript (or else, forgive ignorance , noobishness) read custom font when visitor comes site doesn't matter don't have custom font installed it's loaded off site?
you can embed custom fonts using css.
@font-face { font-family: 'mywebfont'; src: url('webfont.eot'); /* ie9 compat modes */ src: url('webfont.eot?#iefix') format('embedded-opentype'), /* ie6-ie8 */ url('webfont.woff') format('woff'), /* modern browsers */ url('webfont.ttf') format('truetype'), /* safari, android, ios */ url('webfont.svg#svgfontname') format('svg'); /* legacy ios */ } body { font-family: 'myfontfamily', fallback, sans-serif; }
Comments
Post a Comment