Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nclslbrn committed May 17, 2024
1 parent 8db6bcc commit a7b8e6f
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,21 @@
A SVG text writer for plotter.
This library allows you to obtain an SVG plot from text, each glyph drawn with simple lines (no outlines).

![a plot made with PlotWriter](https://raw.githubusercontent.com/nclslbrn/plotWriter/main/plotwriter.jpg)

This library is currently in beta.
The SVG font will support all characters of the [Latin Extended-A alphabet](https://en.wikipedia.org/wiki/Latin_Extended-A).

The glyphs are currently being designed
API available soon
# Why
I wanted to incorporate text into my plotter drawings, but I couldn't find any vector typography that could be used with JavaScript, so I decided to create this tool. Without this specific need I probably wouldn't have created any typography.

Already existing tools exist but doesn't fit all my need :
- p5js has a function (textToPoints) to export vector from text you get an outline and not the inner stroke, and if the text is small, that's a lot of point.
- An extension of Inkscape, Hershey text allows you transform a text into a vector (inner stroke) but it changes the size and appearance of the text.

I wanted something that could be integrated into my code so that I could be more precise about the position and size of the text. Using vectors from JS, it's also possible to apply transformations to them.


The glyphs are currently being designed.

The library will be published on npm once completed, but you can already try it out by compiling the sources (yarn run build), which will create the modules in several formats (CommonJS, UMD and EsNext) in dist/.

0 comments on commit a7b8e6f

Please sign in to comment.