Skip to main content

Convert text to SVG file.

Project description

Text2SVG

GitHub license GitHub issues PyPI PyPI - Format PyPI - Status GitHub Release Date pre-commit hook

Build Wheels

This is a small wrapper aoung Pango and Cairo which allows you to enter a text and get you svg files ready. This is wrapped using Cython.

Installation

For Windows and MacOS, wheels are provided which seems to be working. For linux it is not recommended to use the manylinux wheels which was published to PyPi as it seems that it is working well. Instead you can install Pango and Cairo along with the header files for your package manage and run the below command

pip install --no-binary :all: text2svg

Other users, can directly install using pip,

pip install text2svg

and checking your installation by running the below example.

Example

This is a small example on how it works.

>>> from text2svg import *
>>> info = TextInfo("Hello World","hello.svg",50,50)
>>> text2svg(info)

This will simply create a hello.svg in the current working directory.

Documentation

Documentation is located at https://text2svg.syrusdark.website

LICENSE

This project along with its documentation is licensed under GPL-v3. See LICENSE for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

text2svg-0.3.0.tar.gz (22.5 kB view hashes)

Uploaded Source

Built Distributions

text2svg-0.3.0-cp39-cp39-win_amd64.whl (4.5 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

text2svg-0.3.0-cp39-cp39-win32.whl (3.9 MB view hashes)

Uploaded CPython 3.9 Windows x86

text2svg-0.3.0-cp39-cp39-manylinux2010_x86_64.whl (1.6 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

text2svg-0.3.0-cp39-cp39-manylinux2010_i686.whl (1.6 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.12+ i686

text2svg-0.3.0-cp39-cp39-macosx_10_9_x86_64.whl (3.5 MB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

text2svg-0.3.0-cp38-cp38-win_amd64.whl (4.5 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

text2svg-0.3.0-cp38-cp38-win32.whl (3.9 MB view hashes)

Uploaded CPython 3.8 Windows x86

text2svg-0.3.0-cp38-cp38-manylinux2010_x86_64.whl (1.6 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

text2svg-0.3.0-cp38-cp38-manylinux2010_i686.whl (1.6 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ i686

text2svg-0.3.0-cp38-cp38-macosx_10_9_x86_64.whl (3.5 MB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

text2svg-0.3.0-cp37-cp37m-win_amd64.whl (4.5 MB view hashes)

Uploaded CPython 3.7m Windows x86-64

text2svg-0.3.0-cp37-cp37m-win32.whl (3.9 MB view hashes)

Uploaded CPython 3.7m Windows x86

text2svg-0.3.0-cp37-cp37m-manylinux2010_x86_64.whl (1.6 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

text2svg-0.3.0-cp37-cp37m-manylinux2010_i686.whl (1.6 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ i686

text2svg-0.3.0-cp37-cp37m-macosx_10_9_x86_64.whl (3.5 MB view hashes)

Uploaded CPython 3.7m macOS 10.9+ x86-64

text2svg-0.3.0-cp36-cp36m-win_amd64.whl (4.5 MB view hashes)

Uploaded CPython 3.6m Windows x86-64

text2svg-0.3.0-cp36-cp36m-win32.whl (3.9 MB view hashes)

Uploaded CPython 3.6m Windows x86

text2svg-0.3.0-cp36-cp36m-manylinux2010_x86_64.whl (1.6 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

text2svg-0.3.0-cp36-cp36m-manylinux2010_i686.whl (1.6 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.12+ i686

text2svg-0.3.0-cp36-cp36m-macosx_10_9_x86_64.whl (3.5 MB view hashes)

Uploaded CPython 3.6m macOS 10.9+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page