diff --git a/documentation/DESCRIPTION.en_us.html b/documentation/DESCRIPTION.en_us.html index 34a7b19..e69de29 100644 --- a/documentation/DESCRIPTION.en_us.html +++ b/documentation/DESCRIPTION.en_us.html @@ -1,12 +0,0 @@ -
- Please add a text describing the font here, 100 chracters or more, but no more than 500 words. - See https://googlefonts.github.io/gf-guide/description.html for further reference. - Please make sure that HTML characters are properly encoded. ('&' becomes & etc.) - If unsure, use https://www.freeformatter.com/html-escape.html for formatting. (Use "Escape HTML"). -
-- Could be several paragraphs, also. -
-- To contribute, see github.com/youruseraccount/yourrepository. -
\ No newline at end of file diff --git a/documentation/image1.py b/documentation/image1.py index 6670a6b..18119ec 100644 --- a/documentation/image1.py +++ b/documentation/image1.py @@ -15,16 +15,20 @@ import argparse # Constants, these are the main "settings" for the image -WIDTH, HEIGHT, MARGIN, FRAMES = 2048, 1024, 128, 1 -FONT_PATH = "fonts/ttf/RadioCanadaDisplay-Regular.ttf" +WIDTH, HEIGHT, MARGIN, FRAMES = 2048, 2048, 128, 1 +FONT_PATH = "fonts/ttf/DedigamaDEV-Regular.ttf" FONT_LICENSE = "OFL v1.1" -AUXILIARY_FONT = "Helvetica" +AUXILIARY_FONT = "Inconsolata" AUXILIARY_FONT_SIZE = 48 -BIG_TEXT = "AaBb" -BIG_TEXT_FONT_SIZE = 730 +# Update BIG_TEXT for multiple lines + +BIG_TEXT_LINES = ["පබාවතී?", "මොකටද", "ආදර මල් "] +BIG_TEXT_FONT_SIZE = 400 BIG_TEXT_SIDE_MARGIN = MARGIN * 1 -BIG_TEXT_BOTTOM_MARGIN = MARGIN * 2 +BIG_TEXT_BOTTOM_MARGIN = MARGIN * 3 + + GRID_VIEW = False # Toggle this for a grid overlay @@ -90,11 +94,10 @@ def draw_main_text(): stroke(None) font(FONT_PATH) fontSize(BIG_TEXT_FONT_SIZE) - # Adjust this line to center main text manually. - # TODO: This should be done automatically when drawbot-skia - # has support for textBox() and FormattedString - #text(BIG_TEXT, ((WIDTH / 2) - MARGIN * 4.75, (HEIGHT / 2) - MARGIN * 2.5)) - text(BIG_TEXT, (BIG_TEXT_SIDE_MARGIN, BIG_TEXT_BOTTOM_MARGIN)) + y = BIG_TEXT_BOTTOM_MARGIN + for line in BIG_TEXT_LINES: + text(line, (BIG_TEXT_SIDE_MARGIN, y)) + y += BIG_TEXT_FONT_SIZE * 1.2 # Adjust the line spacing as needed # Divider lines