Skip to content

Commit

Permalink
fix(demo): embed font into svg for consistent rendering
Browse files Browse the repository at this point in the history
The demo svg was generated with svg-term-cli but I noticed whitespace
inconsistencies on windows. I fixed it by bundling CascadiaMonoPL.ttf
into the svg.

    $ npm i -D git+https://github.com/miraclx/svgembed svg-term-cli
    $ npx svg-term-cli --cast=92UaraAB1LOZR13laURQ5jB7b --out tmp.svg --window
    $ npx svgembed -i tmp.svg -o demo.svg -f CascadiaMonoPL.ttf

Related links:

- https://github.com/marionebl/svg-term-cli
- marionebl/svg-term-cli#61
- https://github.com/miraclx/svgembed
  • Loading branch information
vberlier committed Apr 2, 2021
1 parent 4fcd357 commit df03d85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit df03d85

Please sign in to comment.