webfontloader
Version:
Web Font Loader gives you added control when using linked fonts via @font-face.
28 lines (27 loc) • 479 B
HTML
<html>
<head>
<style>
@font-face {
font-family: test;
src: url(emfont.ttf);
}
</style>
</head>
<body>
<script src="webfontloader.js"></script>
<script>
WebFont.load({
custom: {
families: ['test'],
testStrings: {
'test': 'x'
}
},
fontactive: function () {
console.log(arguments);
}
});
</script>
</body>
</html>