The canvas approach suggested by Amaan is definitely today's approach to generating images client-side.
In the past, the most common solution was to use a library like Cufon. From the Cufon wiki page on its usage comes this snippet:
<script type="text/javascript">
Cufon.replace('h1'); // Works without a selector engine
Cufon.replace('#sub1'); // Requires a selector engine for IE 6-7, see above
</script>
Cufon generates the client-side version of the font up-front. This means it just adds static files on your web server, instead of generating the images on the web server (like with ImageMagick).