Skip to content

Commit

Permalink
Updates and hosekeeping
Browse files Browse the repository at this point in the history
  • Loading branch information
pathumego committed Dec 28, 2024
1 parent 75c2123 commit e7ae196
Show file tree
Hide file tree
Showing 7 changed files with 100 additions and 19 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.
2 changes: 1 addition & 1 deletion documentation/image1.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

# Update BIG_TEXT for multiple lines

BIG_TEXT_LINES = ["පබාවතී?", "මොකටද", "ආදර මල් "]
BIG_TEXT_LINES = ["ටියුෂන්", "හවසට", "දුයිෂෙන් "]
BIG_TEXT_FONT_SIZE = 400
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.
26 changes: 19 additions & 7 deletions documentation/image2.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,26 @@
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_SIZE = 48
AUXILIARY_FONT = "Inconsolata"
AUXILIARY_FONT_SIZE = 36

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


BIG_TEXT_FONT_SIZE = 140
BIG_TEXT_SIDE_MARGIN = MARGIN * 1
BIG_TEXT_BOTTOM_MARGIN = MARGIN * 5.45
BIG_TEXT_BOTTOM_MARGIN = MARGIN * 13.2

GRID_VIEW = False # Toggle this for a grid overlay

Expand Down Expand Up @@ -96,11 +103,16 @@ def draw_main_text():
# Adjust this line to center main text manually.
# TODO: This should be done automatically when drawbot-skia
# has support for textBox() and FormattedString
LEADING = 1.2
LEADING = 1.4
text(LINE_ONE, (BIG_TEXT_SIDE_MARGIN, BIG_TEXT_BOTTOM_MARGIN))
text(LINE_TWO, (BIG_TEXT_SIDE_MARGIN, BIG_TEXT_BOTTOM_MARGIN - (MARGIN * LEADING)))
text(LINE_THREE, (BIG_TEXT_SIDE_MARGIN, BIG_TEXT_BOTTOM_MARGIN - (MARGIN * (LEADING * 2))))
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
Expand Down
5 changes: 0 additions & 5 deletions sources/Dedigama.glyphspackage/UIState.plist

This file was deleted.

73 changes: 73 additions & 0 deletions sources/Dedigama.glyphspackage/glyphs/_notdef.glyph
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
glyphname = .notdef;
layers = (
{
layerId = m001;
shapes = (
{
closed = 1;
nodes = (
(70,553,l),
(507,553,l),
(507,-143,l),
(70,-143,l)
);
},
{
closed = 1;
nodes = (
(243,-19,o),
(256,-6,o),
(271,-6,cs),
(286,-6,o),
(299,-19,o),
(299,-34,cs),
(299,-49,o),
(286,-61,o),
(271,-61,cs),
(256,-61,o),
(243,-49,o),
(243,-34,cs)
);
},
{
closed = 1;
nodes = (
(474,-113,l),
(474,523,l),
(102,523,l),
(102,-113,l)
);
},
{
closed = 1;
nodes = (
(187,368,o),
(224,404,o),
(284,404,cs),
(364,404,o),
(410,350,o),
(410,278,cs),
(410,197,o),
(347,155,o),
(289,154,c),
(289,33,l),
(251,33,l),
(251,187,l),
(328,188,o),
(372,211,o),
(372,277,cs),
(372,327,o),
(339,371,o),
(283,371,cs),
(230,371,o),
(207,340,o),
(193,321,c),
(168,343,l)
);
}
);
width = 577;
}
);
}
13 changes: 7 additions & 6 deletions sources/Dedigama.glyphspackage/order.plist
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ nbspace,
zerowidthnonjoiner,
zerowidthjoiner,
CR,
.notdef,
.null,
sinKundaliya,
period,
comma,
colon,
Expand Down Expand Up @@ -105,25 +105,26 @@ guilsinglright,
quotedbl,
quotesingle,
dottedCircle,
sinMatraI,
sinMatraIi,
sinMatraU,
sinMatraUu,
sinVirama,
sinAnusvara,
sinKundaliya,
sinMatraAa,
sinMatraAae,
sinMatraAe,
sinMatraAi,
sinMatraAu,
sinMatraE,
sinMatraEe,
sinMatraI,
sinMatraIi,
sinMatraLl,
sinMatraLs,
sinMatraO,
sinMatraOo,
sinMatraR,
sinMatraRr,
sinMatraU,
sinMatraUu,
sinVirama,
sinVisarga,
mooniak,
sinBI,
Expand Down

0 comments on commit e7ae196

Please sign in to comment.