Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mshenfield/text2svg
- Owner: mshenfield
- License: mit
- Created: 2014-12-14T22:26:10.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-14T22:27:26.000Z (almost 10 years ago)
- Last Synced: 2024-06-11T20:35:38.248Z (5 months ago)
- Language: JavaScript
- Size: 566 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.