Discuss Scratch

happybird123
Scratcher
56 posts

SVG Text Import?

I have seen a bunch of projects that use a font other than the ones provided in the Scratch editor. I have heard that these projects use an external program to make SVG files with text that is then imported into Scratch. I tried doing this in 2 ways, but they both did not work. First I used a vector graphics software called Graphic to make an image with text, but when that was imported, the costume editor crashed and no costumes could be edited on any sprite without reloading the project, and this would happen any time that costume was loaded into the editor. However, the font rendered completely normally on the project player. I then tried Google Drawings to make a similar image, and it did not crash, but the text did not render anywhere. I presume that Scratch doesn't know how to handle the text from the SVG file, so is there another way to do it that avoids the problem?
Andreto
Scratcher
100+ posts

SVG Text Import?

I know that this has worked without problems for me in scratch 2 and should still work. But Scratch 3 vector editor is really bad and its really hard to import vector graphics. If you have a program that can do it then I would recommend converting the text to curves before exporting it. That way you can check if its text that makes scratch crash or if it's just SVG in general. If you don't have any good vector editor I would recommend Inkscape. It's free and quite capable.
happyland440
Scratcher
1000+ posts

SVG Text Import?

Like said above, Inkscape is a great editor, and it can allow you to prep text to allow it to be imported into Scratch. When you've written your text as you want, go to Path -> Object to Path, and now your text is ready to be exported as an SVG and imported into Scratch. For some reason, Scratch will only accept vector paths, but not normal text, so this is one of the only ways to get vector text in Scratch.

Powered by DjangoBB