Uncovering an issue while attempting to dynamically fetch a Google Fonts css file to extract the font URL. The scenario looks like this:
(Viewed in Chrome)
Contrast that with:
WGET -qO- http://fonts.googleapis.com/css?family=Droid+Sans
Upon inspection in Chrome, I observe:
@font-face {
font-family: 'Droid Sans';
font-style: normal;
font-weight: normal;
src: local('Droid Sans'), local('DroidSans'), url('http://themes.googleusercontent.com/static/fonts/droidsans/v3/s-BiyweUPV0v-yRb-cjciBsxEYwM7FgeyaSgU71cLG0.woff') format('woff');
}
Whereas WGET offers:
@font-face {
font-family: 'Droid Sans';
font-style: normal;
font-weight: normal;
src: local('Droid Sans'), local('DroidSans'), url('http://themes.googleusercontent.com/static/fonts/droidsans/v3/s-BiyweUPV0v-yRb-cjciC3USBnSvpkopQaUR-2r7iU.ttf') format('truetype');
}
A response by thirtydot on Google fonts external CSS Vs copying the code of external css in my css? reveals that Google delivers varying CSS based on the requester. Is there a way to tweak my WGET parameters to receive the version identical to what Chrome produces?