1 # -*- coding: utf-8 -*-
3 # This file is part of Librarian, licensed under GNU Affero GPLv3 or later.
4 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
7 from librarian import get_resource
8 from librarian.cover import Cover
11 class VirtualoCover(Cover):
20 class PrestigioCover(Cover):
23 background_img = get_resource('res/cover-prestigio.png')
26 author_margin_left = 118
27 author_margin_right = 62
30 author_shadow = '#000'
31 author_font = ImageFont.truetype(get_resource('fonts/JunicodeWL-Italic.ttf'), 50)
34 title_margin_left = 118
35 title_margin_right = 62
39 title_font = ImageFont.truetype(get_resource('fonts/JunicodeWL-Italic.ttf'), 50)
41 def pretty_title(self):
42 return u"„%s”" % self.title
45 class BookotekaCover(Cover):
48 background_img = get_resource('res/cover-bookoteka.png')
51 author_margin_left = 307
52 author_margin_right = 233
54 author_color = '#d9d919'
55 author_font = ImageFont.truetype(get_resource('fonts/JunicodeWL-Regular.ttf'), 130)
58 title_margin_left = 307
59 title_margin_right = 233
61 title_color = '#d9d919'
62 title_font = ImageFont.truetype(get_resource('fonts/JunicodeWL-Regular.ttf'), 140)
67 class GandalfCover(Cover):
70 background_img = get_resource('res/cover-gandalf.png')
71 author_font = ImageFont.truetype(get_resource('fonts/JunicodeWL-Regular.ttf'), 30)
72 title_font = ImageFont.truetype(get_resource('fonts/JunicodeWL-Regular.ttf'), 40)