Add this line into your head tag.
<link href='http://fonts.googleapis.com/css?family=Kavoon' rel='stylesheet' type='text/css'>
this will make "Kavoon" ready to use in your page, then you can use font-family:Kavoon
in your style.
Update:
To add the <link>
in a userscript environment, use this code:
var D = document;
var linkNode = D.createElement ('link');
linkNode.type = "text/css";
linkNode.rel = "stylesheet";
linkNode.href = "http://fonts.googleapis.com/css?family=Kavoon";
var targ = D.getElementsByTagName ('head')[0] || D.body || D.documentElement;
targ.appendChild (linkNode);
Then Activate the style with code like this:
GM_addStyle ("button {margin-left: 5px; font-family: 'Kavoon', cursive;}");
In fact, you should be using GM_addStyle()
, which is supported by all major userscript engines, not that addStyleSheet()
function.