Skip to content

Commit

Permalink
Updates and housekeeping
Browse files Browse the repository at this point in the history
  • Loading branch information
pathumego committed May 8, 2024
1 parent ed88ace commit 4f06fb6
Show file tree
Hide file tree
Showing 13 changed files with 907 additions and 79 deletions.
44 changes: 39 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,40 @@
/docs/*
/sources/files/*
/_site
.jekyll-metadata
*~
venv
venv-test
build.stamp
proof
fonts
node_modules
package-lock.json
package.json
master_ufo
instance_ufos
.ninja_log
build.ninja

# OS generated files #
######################
.DS_Store
/fontester
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db

# Autosaved by application when editing
######################
*(تم الحفظ تلقائيًا).*
*(automaticky uloženo).*
*(Automatisch gesichert).*
*(Autosaved).*
*(guardado automáticamente).*
*(enregistré automatiquement).*
*(salvato automaticamente).*
*(自動保存).*
*(자동 저장됨).*
*(Salvo Automaticamente).*
*(Автосохранение).*
*(Otomatik Kaydedildi).*
*(自动存储).*
*(已自動儲存).*
Binary file modified documentation/image1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions documentation/image1.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@

# Constants, these are the main "settings" for the image
WIDTH, HEIGHT, MARGIN, FRAMES = 2048, 2048, 128, 1
FONT_PATH = "fonts/ttf/Maname-Regular.ttf"
FONT_PATH = "fonts/ttf/Galle-Regular.ttf"
FONT_LICENSE = "OFL v1.1"
AUXILIARY_FONT = "Helvetica"
AUXILIARY_FONT_SIZE = 48

# Update BIG_TEXT for multiple lines

BIG_TEXT_LINES = ["හරි?", "AbGg"]
BIG_TEXT_LINES = ["ආ හරිද?", "agkmn"]
BIG_TEXT_FONT_SIZE = 730
BIG_TEXT_SIDE_MARGIN = MARGIN * 1
BIG_TEXT_BOTTOM_MARGIN = MARGIN * 3
Expand Down
Binary file modified documentation/image2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 10 additions & 15 deletions documentation/image2.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,21 @@

# Constants, these are the main "settings" for the image
WIDTH, HEIGHT, MARGIN, FRAMES = 2048, 2048, 128, 1
FONT_PATH = "fonts/ttf/Maname-Regular.ttf"
FONT_PATH = "fonts/ttf/Galle-Regular.ttf"
FONT_LICENSE = "OFL v1.1"
AUXILIARY_FONT = "Inconsolata"
AUXILIARY_FONT_SIZE = 48

LINE_ONE = "ABCDEFGHIJKLMNOPQ"
LINE_TWO = "RSTUVWXYZ123456789"
LINE_THREE = "abcdefghijklmnopqrstu"
LINE_FOUR = "vwxyz,.;:!@#$%^&*(){}[]"
LINE_FIVE = "අආඇඈඉඊඋඌඍඎඏඐ "
LINE_SIX = "එඒඓඔඕඖකඛගඝඞඟච"
LINE_SEVEN = "ඡජඣඤඥඦටඨඩඪණඬත"
LINE_EIGHT = "ථදධනඳපඵබභමඹයරලවශ"
LINE_NINE = "ෂසහළෆ෴"

LINE_ONE = "අආඇඈඉඊඋඌඍඎඏඐ "
LINE_TWO = "එඒඓඔඕඖකඛගඝඞඟච"
LINE_THREE = "ඡජඣඤඥඦටඨඩඪණඬත"
LINE_FOUR = "ථදධනඳපඵබභමඹයරලවශ"
LINE_FIVE = "ෂසහළෆ෴Hagkmnp"
LINE_SIX = ",.;:!@#$%^&*(){}[]"

BIG_TEXT_FONT_SIZE = 155

BIG_TEXT_FONT_SIZE = 200
BIG_TEXT_SIDE_MARGIN = MARGIN * 1
BIG_TEXT_BOTTOM_MARGIN = MARGIN * 13.2

Expand Down Expand Up @@ -110,10 +108,7 @@ def draw_main_text():
text(LINE_FOUR, (BIG_TEXT_SIDE_MARGIN, BIG_TEXT_BOTTOM_MARGIN - (MARGIN * (LEADING * 3))))
text(LINE_FIVE, (BIG_TEXT_SIDE_MARGIN, BIG_TEXT_BOTTOM_MARGIN - (MARGIN * (LEADING * 4))))
text(LINE_SIX, (BIG_TEXT_SIDE_MARGIN, BIG_TEXT_BOTTOM_MARGIN - (MARGIN * (LEADING * 5))))
text(LINE_SEVEN, (BIG_TEXT_SIDE_MARGIN, BIG_TEXT_BOTTOM_MARGIN - (MARGIN * (LEADING * 6))))
text(LINE_EIGHT, (BIG_TEXT_SIDE_MARGIN, BIG_TEXT_BOTTOM_MARGIN - (MARGIN * (LEADING * 7))))
text(LINE_NINE, (BIG_TEXT_SIDE_MARGIN, BIG_TEXT_BOTTOM_MARGIN - (MARGIN * (LEADING * 8))))



# Divider lines
def draw_divider_lines():
Expand Down
Binary file removed documentation/image3.png
Binary file not shown.
2 changes: 2 additions & 0 deletions requirements-test.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fontbakery[googlefonts]>=0.9.2
gftools[qa]>=0.9.23
Loading

0 comments on commit 4f06fb6

Please sign in to comment.