diff --git a/fonts/DottyShadow.ttf b/fonts/DottyShadow.ttf deleted file mode 100755 index 6ece33a..0000000 Binary files a/fonts/DottyShadow.ttf and /dev/null differ diff --git a/fonts/RepetitionScrolling.ttf b/fonts/RepetitionScrolling.ttf deleted file mode 100755 index dc12416..0000000 Binary files a/fonts/RepetitionScrolling.ttf and /dev/null differ diff --git a/fonts/patrick.ttf b/fonts/patrick.ttf deleted file mode 100644 index a1b90ba..0000000 Binary files a/fonts/patrick.ttf and /dev/null differ diff --git a/fonts/square_dot.ttf b/fonts/square_dot.ttf deleted file mode 100644 index 36667c3..0000000 Binary files a/fonts/square_dot.ttf and /dev/null differ diff --git a/fonts/squaredot.ttf b/fonts/squaredot.ttf deleted file mode 100755 index 36667c3..0000000 Binary files a/fonts/squaredot.ttf and /dev/null differ diff --git a/images/certificate.png b/images/certificate.png deleted file mode 100755 index 597d510..0000000 Binary files a/images/certificate.png and /dev/null differ diff --git a/web_app/utils/util.py b/web_app/utils/util.py index d89be98..f0cb4fe 100644 --- a/web_app/utils/util.py +++ b/web_app/utils/util.py @@ -1,4 +1,4 @@ -from nepali_datetime import date, datetime +from nepali_datetime import datetime from PIL import Image, ImageFont, ImageDraw @@ -17,9 +17,7 @@ def add_newline(string: str, number_of_words: int = 15) -> str: poppins_regular = ImageFont.truetype("fonts/regular.ttf", size=40) -square_dot = ImageFont.truetype("fonts/RepetitionScrolling.ttf", size=40) poppins_bold = ImageFont.truetype("fonts/bold.ttf", size=40) -patrick = ImageFont.truetype("fonts/patrick.ttf", size=50) revue = ImageFont.truetype("fonts/RevueBT.ttf", size=80) @@ -147,10 +145,7 @@ def create_certificate( x = (image.size[0] - row_length) / 2 for font, segment in row: - if font == square_dot: - draw.text((x, y+10), segment, fill="black", font=font,) - else: - draw.text((x, y), segment, fill="black", font=font) + draw.text((x, y), segment, fill="black", font=font) x += font.getlength(segment) y += line_height