html - How to use dowloaded Google Fonts in my app offline? -
this question has answer here:
i have downloaded couple of fonts in folder of app in www/css
folder:
/oxygen
this folder consist of:
oxygen-bold.ttf oxygen-light.ttf
in traditional way, include link following in index.html have access these font styles, e.g.
<link href='http://fonts.googleapis.com/css?family=source+sans+pro:700|oxygen:400,700' rel='stylesheet' type='text/css'>
however, since want fonts available offline, wondering steps need undertake able use these fonts well?
be careful, css generated google fonts depends on requesting user agent every browser uses different font formats, ttf, eot, woff, woff2 , svg. there no way directly download font variants directly google, other faking user agent , inspecting generated css rules.
you can use tool http://www.localfont.com/ download font formats , automatically generate cross browser css rules.
Comments
Post a Comment