{"id":25696639,"url":"https://github.com/tizee/text2svg","last_synced_at":"2025-08-02T20:04:57.045Z","repository":{"id":184250829,"uuid":"671109504","full_name":"tizee/text2svg","owner":"tizee","description":"A command line tool help convert text to svg file","archived":false,"fork":false,"pushed_at":"2025-04-02T12:28:44.000Z","size":79,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-02T13:30:30.883Z","etag":null,"topics":["commandline-tool","rust","svg"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tizee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-26T14:59:20.000Z","updated_at":"2025-04-02T12:28:48.000Z","dependencies_parsed_at":"2023-09-07T01:53:01.821Z","dependency_job_id":null,"html_url":"https://github.com/tizee/text2svg","commit_stats":null,"previous_names":["tizee/text2svg"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tizee/text2svg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tizee%2Ftext2svg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tizee%2Ftext2svg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tizee%2Ftext2svg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tizee%2Ftext2svg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tizee","download_url":"https://codeload.github.com/tizee/text2svg/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tizee%2Ftext2svg/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268448176,"owners_count":24251994,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["commandline-tool","rust","svg"],"created_at":"2025-02-25T01:54:54.326Z","updated_at":"2025-08-02T20:04:57.035Z","avatar_url":"https://github.com/tizee.png","language":"Rust","readme":"# text2svg\n\nA tool help to convert text to svg file with highlighting support.\n\n## Usage\n\n```\nA command line tool help convert text to svg file\n\nUsage: text2svg [OPTIONS] [TEXT]\n\nArguments:\n  [TEXT]  input text string\n\nOptions:\n      --width \u003cWIDTH\u003e              max width per line (characters)\n      --pixel-width \u003cPIXEL_WIDTH\u003e  max width per line (pixels)\n  -f, --file \u003cFILE\u003e                input file\n  -o, --output \u003cOUTPUT\u003e            output svg file path [default: output.svg]\n      --font \u003cFONT\u003e                font family name (e.g., \"Arial\", \"Times New Roman\")\n      --size \u003cSIZE\u003e                font size in pixels [default: 64]\n      --fill \u003cFILL\u003e                svg fill color (e.g., \"#ff0000\", \"none\"). Overridden by highlight [default: none]\n      --color \u003cCOLOR\u003e              font stroke color (e.g., \"#000\", \"currentColor\"). Overridden by highlight [default: #000]\n      --animate                    Add progressive line-by-line draw animation effect (works best with stroke only)\n      --style \u003cSTYLE\u003e              font style (regular, bold, italic, etc.). Overridden by highlight [default: regular] [possible values: thin, extralight, light, regular, medium, semibold, bold, extrabold, black, italic]\n      --space \u003cSPACE\u003e              letter spacing (in em units, e.g., 0.1) [default: 0]\n      --features \u003cFEATURES\u003e        font features (e.g., \"cv01=1,calt=0,liga=1\")\n      --highlight                  Enable syntax highlighting mode for files\n      --theme \u003cTHEME\u003e              Syntax highlighting theme name or path to .tmTheme file [default: base16-ocean.dark]\n      --list-syntax                List supported file types/syntax for highlighting\n      --list-theme                 List available built-in highlighting themes\n  -d, --debug                      Enable debug logging\n      --list-fonts                 List installed font families\n  -h, --help                       Print help\n  -V, --version                    Print version\n```\n\n## Features\n\n- 🎨 **Text to SVG Conversion**: Convert plain text or files to SVG format\n- 🎯 **Font Customization**: Support for various font families, sizes, and styles\n- 📝 **Syntax Highlighting**: Built-in syntax highlighting for code files\n- 🎭 **Animation Effects**: Progressive line-by-line drawing animation\n- 📏 **Text Wrapping**: Support for character-based and pixel-based text wrapping\n- 🎨 **Advanced Typography**: Font features, letter spacing, and style controls\n\n## Animation Effect\n\nThe `--animate` flag creates a progressive line-by-line drawing animation where:\n- Each line draws from left to right using stroke-dasharray animation\n- Lines appear sequentially with a 0.8-second delay between each line\n- Each line takes 1.5 seconds to complete its drawing animation\n- Works best with stroke-only styling (no fill)\n\n## Examples\n\n### Basic text conversion\n```bash\ntext2svg \"Hello World\" --font \"Arial\" --size 48 --output hello.svg\n```\n\n### Animated text with stroke\n```bash\ntext2svg \"Multi-line\\nText Animation\" --font \"Arial\" --animate --fill none --color \"#000\" --output animated.svg\n```\n\n### File with syntax highlighting\n```bash\ntext2svg --file script.js --highlight --theme \"base16-ocean.dark\" --output code.svg\n```\n\n### Text wrapping by pixel width\n```bash\ntext2svg \"Long text that needs wrapping\" --pixel-width 300 --font \"Arial\" --output wrapped.svg\n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftizee%2Ftext2svg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftizee%2Ftext2svg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftizee%2Ftext2svg/lists"}