dynamically load fonts html jquery -
i working on site allows user come in text , drag position, etc. have gotten point offer selection of fonts. can dynamically load fonts instead of @ once? instance, user enters text , chooses utilize "generic font 1" possible load font jquery? way can offer bunch of fonts without loading them when page loads. hoping utilize google web fonts, not must. clarity, using couple of custom fonts , load fine.
once again, give thanks you... todd
here's function wrote adding google web fonts dynamically...
function addgooglefont(fontname) { $("head").append("<link href='https://fonts.googleapis.com/css?family=" + fontname + "' rel='stylesheet' type='text/css'>"); } addgooglefont("junge"); // illustration
after apply font via font-family
would.
jquery html fonts
No comments:
Post a Comment