Skip to content

Commit

Permalink
fix: Rebuild images
Browse files Browse the repository at this point in the history
  • Loading branch information
ottta committed Jul 7, 2023
1 parent 29268bc commit 1cf175a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
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.
10 changes: 5 additions & 5 deletions documentation/image1.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,13 @@

# Constants, these are the main "settings" for the image
WIDTH, HEIGHT, MARGIN, FRAMES = 2048, 1048, 128, 1
FONT_PATH = "fonts/ttf/SutasomaModerat-Bold.ttf"
FONT_PATH = "fonts/ttf/Sutasoma-BoldItalic.ttf"
FONT_LICENSE = "OFL v1.1"
AUXILIARY_FONT = "Helvetica"
AUXILIARY_FONT_SIZE = 32
BIG_TEXT = "SUTASOMA"
BIG_TEXT_FONT_SIZE = 300
BIG_TEXT_FONT_SIZE = 280
BIG_TEXT_SIDE_MARGIN = MARGIN * 2
BIG_TEXT_BOTTOM_MARGIN = MARGIN * 3.35
BIG_TEXT_BOTTOM_MARGIN = MARGIN * 4.35
GRID_VIEW = False # Change this to "True" for a grid overlay

# Handel the "--output" flag
Expand Down Expand Up @@ -92,7 +91,8 @@ def draw_main_text():
# 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))
text("Sutasoma", (MARGIN, (HEIGHT - (MARGIN * 3.5))))
text("Text & Display", (MARGIN, MARGIN * 2.5))


# Divider lines
Expand Down

0 comments on commit 1cf175a

Please sign in to comment.