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.
 
   6 from librarian.utils import get_resource
 
  10 class VirtualoCover(Cover):
 
  11     format_name = u"Virtualo cover image"
 
  21 class PrestigioCover(Cover):
 
  22     format_name = u"Prestigio cover image"
 
  26     background_img = get_resource('res/cover-prestigio.png')
 
  29     author_margin_left = 118
 
  30     author_margin_right = 62
 
  33     author_shadow = '#000'
 
  34     author_font_ttf = get_resource('fonts/JunicodeWL-Italic.ttf')
 
  38     title_margin_left = 118
 
  39     title_margin_right = 62
 
  43     title_font_ttf = get_resource('fonts/JunicodeWL-Italic.ttf')
 
  46     def pretty_title(self):
 
  47         return u"„%s”" % self.title
 
  50 class BookotekaCover(Cover):
 
  51     format_name = u"Bookoteka cover image"
 
  55     background_img = get_resource('res/cover-bookoteka.png')
 
  58     author_margin_left = 307
 
  59     author_margin_right = 233
 
  61     author_color = '#d9d919'
 
  62     author_font_ttf = get_resource('fonts/JunicodeWL-Regular.ttf')
 
  63     author_font_size = 130
 
  66     title_margin_left = 307
 
  67     title_margin_right = 233
 
  69     title_color = '#d9d919'
 
  70     title_font_ttf = get_resource('fonts/JunicodeWL-Regular.ttf')
 
  76 class GandalfCover(Cover):
 
  77     format_name = u"Gandalf cover image"
 
  81     background_img = get_resource('res/cover-gandalf.png')
 
  82     author_font_ttf = get_resource('fonts/JunicodeWL-Regular.ttf')
 
  84     title_font_ttf = get_resource('fonts/JunicodeWL-Regular.ttf')