1.1.0 • Published 2 years ago

@jvjc/txt2svg v1.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Uso

  • Ejecutar:
node bin.js --width 305 --height 305 --text $'Feliz\ncumpleaños\nmamá' --font-url https://dlu1537hrr98t.cloudfront.net/ProductCustomizableTextForVinylCuttingFont/5f076ee7-7208-48d2-89fa-0530ac1e0036.ttf --font-name Pacifico --font-version 3
// or
txt2svg --width 305 --height 305 --text $'Feliz\ncumpleaños\nmamá' --font-url https://dlu1537hrr98t.cloudfront.net/ProductCustomizableTextForVinylCuttingFont/5f076ee7-7208-48d2-89fa-0530ac1e0036.ttf --font-name Pacifico --font-version 3

Argumentos

ArgumentoDefaultOpciones
textRequerido
font-nameRequerido
font-versionRequerido
font-url-
outputsvgsvg | object
width-
height-
font-height50
line-spacing2
merge-pathfalsetrue | false
allow-line-breakpresente o no
auto-adjustfalsetrue | false
cut-area-previewfalsetrue | false
hide-surrounding-boxfalsetrue | false
font-cachingfalsetrue | false
order-id-
cut-boxfalsetrue | false

Otros métodos

  • Ver fuentes y versiones disponibles:
txt2svg --available-fonts
  • Eliminar fuentes o versiones de fuentes
// Eliminar una versión específica de una fuente
txt2svg --clear-fonts --font-name Pacifico font-version 1

// Eliminar todas las versiones de una fuente en específico
txt2svg --clear-fonts --font-name Pacifico

// Eliminar todas las fuentes
txt2svg --clear-fonts