Skip to content

Instantly share code, notes, and snippets.

@markhealey
Last active December 23, 2015 13:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markhealey/6642249 to your computer and use it in GitHub Desktop.
Save markhealey/6642249 to your computer and use it in GitHub Desktop.
typekit
$('link').first().remove(); //remove current typekit-generated CSS
$('head').prepend('<link rel="stylesheet" href="http://macmhealey.wins.wsod.local/markit.com/typekit.css" type="text/css" />');
//FOR IE
document.createStyleSheet("http://macmhealey.wins.wsod.local/markit.com/typekit.css");
$('link').first().remove(); //remove current typekit-generated CSS
var f=document.createElement("link");
f.setAttribute("rel", "stylesheet");
f.setAttribute("type", "text/css");
f.setAttribute("href", "http://macmhealey.wins.wsod.local/markit.com/typekit.css");
document.getElementsByTagName("head")[0].appendChild(f);
@font-face {
font-family: 'akzidenz-grotesk-next';
src: url('AGNext/Regular/agnextregular-webfont.eot');
src: local('☺'),
url('AGNext/Regular/agnextregular-webfont.eot?#iefix') format('embedded-opentype'),
url('AGNext/Regular/agnextregular-webfont.woff') format('woff'),
url('AGNext/Regular/agnextregular-webfont.ttf') format('truetype'),
url('AGNext/Regular/agnextregular-webfont.svg#akzidenz-grotesk-next') format('svg');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment