(That aspect of things is under investigation and not my department.)īut as a result, we now feel a need to close this security hole quickly. I'm not 100% sure about this, but I think it's unlikely that this program was around long enough to do any significant damage, outside of the perpetrator's school. We've known all along that the JS Function block was a security hole, but our users are generally well behaved and we're not a bank or anything, so I'm pretty sure this was the first real attack (as opposed to benign practical jokes). So, about a week ago, we had our first serious malware attack using users' ability to write JavaScript code in the Snap*!* environment to present users with a fake version of the web site, with the goal both of collecting passwords and of potentially infecting users' computers. Meanwhile, we may use powerful programs like Inkscape to create text boxes for our sprites to wear on the stage. Yes, it might be nice to have a vector text editing tool directly available in Snap! Someday, maybe. Now the sprite can display the text box that was created in Inkscape.Īfter working through these steps a few times, it goes fast. In Snap!, select a sprite and drag that Inkscape file into the sprite's Costumes area. menu and save the document in the Snap! project folder as an "Inkscape SVG (*.svg)" type of file. Close the Document Properties dialog.Īt this point the Inkscape document consists only of the text box and the border. Click "Resize page to drawing or selection". control to expand the Custom size dialog. Use the Object > Group menu to combine them into a single object. Set the fill to none, and the stroke to a nice color for the Snap! project. I like to put a border around my text boxes. It pays to learn how to use Inkscape's text tools. I find that 10- to 11-point affords a useful size for familiar fonts such as Cambria. A text box made here will look the same in Snap!Ĭlick the big A icon in Inkscape to select the text tool. Now the Inkscape working surface is about the same size as a Snap! stage. Use the View > Zoom > Zoom in menu two or three times to expand the document up to a workable dimension. dialog, make the following settings:Ĭlose the Document properties dialog. Plan to set the page size in the next step. The following steps describe my current work flow. I use Inkscape 1.1, a respected, open-source vector graphic application. Snap! does not offer a drawing tool for this purpose fortunately, it is possible to import a text box created in another application. Solution: use a vector text box as a costume for a sprite. It should scale up and down nicely when the stage changes size. It should be moveable, so I can drag it or place it programatically. Situation: I want to display a nice text box on a Snap! stage.
0 Comments
Leave a Reply. |