Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spice: Embed fonts, window titles, right-sided window icons #61

Open
miraclx opened this issue May 17, 2020 · 0 comments
Open

Spice: Embed fonts, window titles, right-sided window icons #61

miraclx opened this issue May 17, 2020 · 0 comments

Comments

@miraclx
Copy link

miraclx commented May 17, 2020

I recently discovered this while working on my current project freyr-js.
Great work, well done.

I've tried out a number of other options that all had one problem or the other.
Until I found this.

  • asciicast2gif floods my memory and takes over 10 minutes to compile.
  • terminalizer sometimes doesn't render properly even though it does a better job at staying in check in terms of memory.

These two, because they're GIFs rely on either spawning a headless chromium instance (through electron/puppeteer) or phantomjs, and then merging the frames whether by piping into gifsicle or gif-encoder.

This takes a better approach and can end up with better results, depending on the use-case.
I decided to extend the output SVG from this and embed into it.

Check it out: https://github.com/miraclx/svgembed

vberlier added a commit to vberlier/pytest-insta that referenced this issue Apr 2, 2021
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant