Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ celerybeat-schedule
.venv
venv/
ENV/
trgvenv/

# Spyder project settings
.spyderproject
Expand All @@ -101,3 +102,5 @@ ENV/
.mypy_cache/

.vscode/*

.DS_Store
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,14 @@ Output

![29](samples/29.jpg "2")

## Create images with Yoruba text

It is simple! Just do `trdg -l yo -c 1000 -w 5`!

Output

![30](samples/30.jpg "2")


## Add new fonts

Expand Down
Binary file added samples/30.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1205,6 +1205,21 @@ def test_language_chinese(self):
subprocess.Popen(args, cwd="trdg/").wait()
self.assertTrue(len(os.listdir("tests/out/")) == 1)
empty_directory("tests/out/")

def test_language_yoruba(self):
args = [
"python3",
"run.py",
"-l",
"yo",
"-c",
"1",
"--output_dir",
"../tests/out/",
]
subprocess.Popen(args, cwd="trdg/").wait()
self.assertTrue(len(os.listdir("tests/out/")) == 1)
empty_directory("tests/out/")

def test_count_parameter(self):
args = ["python3", "run.py", "-c", "10", "--output_dir", "../tests/out/"]
Expand Down
Loading