I can confirm that the ScottSs method works, but I could not enter these instructions in the comment field of my answers.
Instructions for creating custom fonts for working in Raphael using Cufรณn:
- Go to the Cufรณn website where you can convert the font to path shapes.
- Download your own font, select a font name and click on the Raphael icon in the "Configuring Third-Party Scripts" section.
- Submit the form and upload the Javascript file that appears.
- Include this Javascript under the Raphael Javascript Index.
- Register the font with Raphael as follows: where fontname is the name of your font as specified in step 2:
var myfont = paper.getFont('fontname');
- Use your font like it is in Raphael:
paper.print(100, 100, 'Hello World', myfont, 100);
Performance is not great compared to Paper.text
, but it works in IE6 and higher.
source share