Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mshenfield/text2svg

Turn your plain old text into SVG paths
https://github.com/mshenfield/text2svg

Last synced: about 13 hours ago
JSON representation

Turn your plain old text into SVG paths

Awesome Lists containing this project

README

        

#text2svg
text2svg is a command line tool that turns texts into an array of SVG Path data. The output can be copied over into projects to let you map objects onto a font path.

## Install
Good old git:

`git clone https://github.com/mshenfield/text2svg`

## Usage
cd into the project directory and use node to run text2svg.js.

`cd text2svg`

`node text2svg.js "Hello world"`

Usage: `node text2svg.js yourText`

There might be support for choosing fonts in the future - right now it will just output SVGized Times New Roman.

## Example
You can find an example application in the [example](https://github.com/mshenfield/text2svg) folder.
![April + Max](http://g.recordit.co/DoAPbEBxre.gif)
It maps circles to SVG paths generated by text2svg and adds some basic animations. Shoutout to [Raphael.js](http://raphaeljs.com/) and [David Merfield's randomColor](http://llllll.li/randomColor/)

## Contributing
Fork, hack, and submit a pull request. All contributions are welcome, and I'll get back to your pull request in a timely manner. Some ideas are fixing typos, adding documentation, opening up issues, providing npm integration, and [browserify-ication](http://browserify.org/).

## License
This project is licensed under the terms of the MIT license.