Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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.

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:

sample
sample
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)