ttf.js - A JavaScript TrueType Font Engine For Modern Browsers And Node.js(github.com)
github.com
ttf.js - A JavaScript TrueType Font Engine For Modern Browsers And Node.js
https://github.com/ynakajima/ttf.js
6 comments
Cool, he is using my lib jDataView to read binary data in Javascript.
https://github.com/vjeux/jDataView
https://github.com/vjeux/jDataView
nice, do you know if there is a reliable way to PUT binary data using XHR in JavaScript?
I really love how the author has taken pains to ensure that everything works in browsers and Node.js. The demo is all client side code, which is truly impressive--there is no uploading to a Node.js server to retrieve SVGs or images.
My workmate did something similar few years back, http://cufon.shoqolate.com/generate/
(Converts font files to js structs and renders them into canvas/vml, this was meant as sIRF replacement before native support for CSS custom fonts was common.)
(Converts font files to js structs and renders them into canvas/vml, this was meant as sIRF replacement before native support for CSS custom fonts was common.)
Heh, many production sites still use Cufon, mind. :)
via Functionn - Open Source Resources For Web Developers & Designers: http://functionn.blogspot.com/2012/12/ttfjs-javascript-truet...
P.S. Functionn contains a whole lot more of awesome resources like ttf.js. There only a fraction of them I can post here at a time. Take a look if you're interested, and subscribe:
http://functionn.blogspot.com
P.S. Functionn contains a whole lot more of awesome resources like ttf.js. There only a fraction of them I can post here at a time. Take a look if you're interested, and subscribe:
http://functionn.blogspot.com
Awesome, I tried a Chinese TTF font and it works! For many years I've been waiting for some JS code which supports CJK fonts, none of typekit, cufon etc. worked. This is really awesome.
very nice!
P.S. Functionn contains a whole lot more of awesome resources like ttf.js. There only a fraction of them I can post here at a time. Take a look if you're interested, and subscribe:
http://functionn.blogspot.com