#svg #tool #convert-text #cli

app text2svg

A command line tool help convert text to svg file

1 unstable release

0.1.0 Sep 2, 2023

#27 in #convert-text

MIT license

42KB
1K SLoC

text2svg

A tool help to convert text to svg file with highlighting support.

Usage

Usage: text2svg [OPTIONS] [TEXT]

Arguments:
  [TEXT]  input text string

Options:
  -f, --file <FILE>      input file
  -o, --output <OUTPUT>  output svg file path [default: output.svg]
      --font <FONT>      font
      --size <SIZE>      font size [default: 64]
      --fill <FILL>      svg fill mode or fill color [default: none]
      --color <COLOR>    font color [default: #000]
      --space <SPACE>    letter space (em) [default: 0.1]
      --highlight        highlight mode
      --theme <THEME>    highlight theme or path to theme [default: base16-ocean.dark]
      --list-syntax      list supported file types/syntax
      --list-theme       list supported theme
  -d, --debug            debug mode
      --list-fonts       list installed fonts
  -h, --help             Print help
  -V, --version          Print version

How it works

WIP

Dependencies

~10–21MB
~294K SLoC