This repository has been archived by the owner on Dec 22, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2009596
commit 86c4b19
Showing
1 changed file
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,25 @@ | ||
# Text2SVG | ||
|
||
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. | ||
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 | ||
|
||
You would need Pango and Cairo along with the header files and its dependencies. | ||
|
||
Installing using pip, | ||
|
||
```sh | ||
pip install text2svg | ||
``` | ||
ad checking your installation by running the below example. | ||
|
||
## Example | ||
|
||
This is a small example on how it works. | ||
```py | ||
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. |