diff --git a/documentation/image1.png b/documentation/image1.png index ffd1f1a..ac5c870 100644 Binary files a/documentation/image1.png and b/documentation/image1.png differ diff --git a/documentation/image1.py b/documentation/image1.py index 18119ec..359428e 100644 --- a/documentation/image1.py +++ b/documentation/image1.py @@ -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 diff --git a/documentation/image2.png b/documentation/image2.png index eff771b..3164131 100644 Binary files a/documentation/image2.png and b/documentation/image2.png differ diff --git a/documentation/image2.py b/documentation/image2.py index cc6cf75..13070a7 100644 --- a/documentation/image2.py +++ b/documentation/image2.py @@ -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 @@ -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 diff --git a/sources/Dedigama.glyphspackage/UIState.plist b/sources/Dedigama.glyphspackage/UIState.plist deleted file mode 100644 index 215780a..0000000 --- a/sources/Dedigama.glyphspackage/UIState.plist +++ /dev/null @@ -1,5 +0,0 @@ -{ -displayStrings = ( -"ත/sinTU" -); -} diff --git a/sources/Dedigama.glyphspackage/glyphs/_notdef.glyph b/sources/Dedigama.glyphspackage/glyphs/_notdef.glyph new file mode 100644 index 0000000..f1d551b --- /dev/null +++ b/sources/Dedigama.glyphspackage/glyphs/_notdef.glyph @@ -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; +} +); +} diff --git a/sources/Dedigama.glyphspackage/order.plist b/sources/Dedigama.glyphspackage/order.plist index 9a3b015..319b348 100644 --- a/sources/Dedigama.glyphspackage/order.plist +++ b/sources/Dedigama.glyphspackage/order.plist @@ -63,8 +63,8 @@ nbspace, zerowidthnonjoiner, zerowidthjoiner, CR, +.notdef, .null, -sinKundaliya, period, comma, colon, @@ -105,12 +105,8 @@ guilsinglright, quotedbl, quotesingle, dottedCircle, -sinMatraI, -sinMatraIi, -sinMatraU, -sinMatraUu, -sinVirama, sinAnusvara, +sinKundaliya, sinMatraAa, sinMatraAae, sinMatraAe, @@ -118,12 +114,17 @@ sinMatraAi, sinMatraAu, sinMatraE, sinMatraEe, +sinMatraI, +sinMatraIi, sinMatraLl, sinMatraLs, sinMatraO, sinMatraOo, sinMatraR, sinMatraRr, +sinMatraU, +sinMatraUu, +sinVirama, sinVisarga, mooniak, sinBI,