In my pages I often use custom fonts with the Raphaël .print with the .getFont. for SVG text, and the CSS3 @font-face (with Font Squirrel kits) for normal text. Is maybe possible to automatically register a font from the @font-face property, without create a JSON with Cufon?
I saw that in Font Squirrel kit there's the format('svg') used for old iPhone/iPad ("This is an XML format required by iOS devices before version 4.2.") maybe it could be useful also for desktop...
Thank you
If you define a font using @font-face in your css, you can then apply it to a Raphaël paper.text object in this way :
var someText = paper.text(0, 0, 'this is some text');
someText.attr({'font-family':'myCustomFont'});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With