Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/u1aryz/font-to-svg
Generates SVG file from text and font files using Bun.
https://github.com/u1aryz/font-to-svg
bun font nodejs opentype svg
Last synced: 18 days ago
JSON representation
Generates SVG file from text and font files using Bun.
- Host: GitHub
- URL: https://github.com/u1aryz/font-to-svg
- Owner: u1aryz
- License: mit
- Created: 2024-08-14T13:12:52.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-17T13:49:50.000Z (5 months ago)
- Last Synced: 2024-10-31T03:06:07.766Z (2 months ago)
- Topics: bun, font, nodejs, opentype, svg
- Language: TypeScript
- Homepage: https://google-font-to-svg.u1aryz.com
- Size: 3.37 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# font-to-svg
Generates SVG file from text and font files using `Bun`.Probably works in `Node.js` as well.
Output sample:
## Getting started
```bash
git clone --depth=1 [email protected]:u1aryz/font-to-svg.git
cd font-to-svg
bun i
```To Run:
```bash
bun start \
--fontPath=path/to/fontfile.ttf \
--text=\"text here\" \
--letterSpacing=10 \
--fontSize=300 \
--color=#0e7490 \
--outputSvgPath=path/to/output.svg
```Show Help:
```bash
bun start --help
```Check the default values from [here](https://github.com/u1aryz/font-to-svg/blob/b7cca3028831e04161363ddaf4911e3461a19479/src/args.ts#L4).
## License
[MIT License](LICENSE)