mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 10:54:53 +02:00
User-specified font for Kindle mastheads
This commit is contained in:
parent
8ddc5d2275
commit
30add33dfe
1 changed files with 1 additions and 1 deletions
|
|
@ -992,7 +992,7 @@ def default_masthead_image(self, out_path):
|
|||
from calibre.ebooks.conversion.config import load_defaults
|
||||
recs = load_defaults('mobi_output')
|
||||
font_path = recs.get('masthead_font')
|
||||
default-font = P('fonts/liberation/LiberationSerif-Bold.ttf')
|
||||
default_font = P('fonts/liberation/LiberationSerif-Bold.ttf')
|
||||
if not font_path or not os.access(font_path, os.R_OK):
|
||||
font_path = default_font
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue