X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/c461850146a3c49dd5bec6c845c1b0ce52a34896..d7ba2c607dacf7a6136b83a1588b5adf2278ad46:/librarian/cover.py?ds=sidebyside diff --git a/librarian/cover.py b/librarian/cover.py index 27f7a70..f7d8f7d 100644 --- a/librarian/cover.py +++ b/librarian/cover.py @@ -118,14 +118,21 @@ class Cover(object): return self.image().save(format=self.format, *args, **kwargs) +class WLCover(Cover): + author_font = ImageFont.truetype(get_resource('fonts/JunicodeWL-Italic.ttf'), 40) + title_font = ImageFont.truetype(get_resource('fonts/JunicodeWL-Italic.ttf'), 50) + logo_width = 250 + logo_bottom = 20 + + class VirtualoCover(Cover): width = 600 height = 730 author_top = 73 title_top = 73 - logo_bottom = 0 - logo_width = 300 + logo_bottom = 25 + logo_width = 250 class PrestigioCover(Cover): @@ -173,3 +180,14 @@ class BookotekaCover(Cover): title_font = ImageFont.truetype(get_resource('fonts/JunicodeWL-Regular.ttf'), 140) format = 'PNG' + + +class GandalfCover(Cover): + width = 600 + height = 730 + background_img = get_resource('res/cover-gandalf.png') + author_font = ImageFont.truetype(get_resource('fonts/JunicodeWL-Regular.ttf'), 30) + title_font = ImageFont.truetype(get_resource('fonts/JunicodeWL-Regular.ttf'), 40) + logo_bottom = 25 + logo_width = 250 + format = 'PNG'