Home ›
typeface.js -- Rendering text with Javascript, , and VMLtypeface.js -- Rendering text with Javascript, , and VML
Submitted by Kathleen Murtagh on June 8, 2009 - 4:24pm
Link Title and URL:
typeface.js -- Rendering text with Javascript, <canvas>, and VML Instead of creating images or using flash just to show your site's graphic text in the font you want, you can use typeface.js and write in plain HTML and CSS, just as if your visitors had the font installed locally. This is a work in progress, but functional enough at least to render the the graphic text on this site. Here's what it takes to get going: load the typeface.js library and some typeface.js fonts, then proceed like normal:
<script type="text/javascript" src="typeface-0.10.js"></script>
<script type="text/javascript" src="helvetiker_regular.typeface.js"></script>
<div class="myclass typeface-js" style="font-family: Helvetiker">
Text here in Helvetiker font...
</div>