If I link a custom font to google, it works. But when I copy the @font-face's to my local machine, it doesn't. In short, i have the following very simple HTML:
<html>
<head>
<!--<link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Roboto'>-->
<!--<link rel='stylesheet' href='roboto.css'>-->
<title>Hello</title>
<style>
.temp { font-family: roboto, courier; }
</style>
</head>
<body>
<div class="temp">THIS IS A STRING!</div>
</body>
</html>
Now, if I uncomment the first link, everything works fine. The string has roboto font.
However, if I paste that link in browser, it'd return me a bunch of @font-face's. If I then copy that lot into a local roboto.css (that stays in the same folder as my html), and use the second link instead, roboto font doesn't show up. Why is that so?
I'm trying to make everything run offline, hence I need to have all css and fonts downloaded.