mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
...
This commit is contained in:
parent
020cb2eeb8
commit
ddec12a802
@ -84,11 +84,11 @@ class PDFOutput(OutputFormatPlugin):
|
||||
'The font family used to render sans-serif fonts')),
|
||||
OptionRecommendation(name='pdf_mono_family',
|
||||
recommended_value='Liberation Mono' if islinux else 'Courier New', help=_(
|
||||
'The font family used to render monospaced fonts')),
|
||||
'The font family used to render monospace fonts')),
|
||||
OptionRecommendation(name='pdf_standard_font', choices=['serif',
|
||||
'sans', 'mono'],
|
||||
recommended_value='serif', help=_(
|
||||
'The font family used to render monospaced fonts')),
|
||||
'The font family used to render monospace fonts')),
|
||||
OptionRecommendation(name='pdf_default_font_size',
|
||||
recommended_value=20, help=_(
|
||||
'The default font size')),
|
||||
|
@ -45,7 +45,7 @@ def get_external_resources(container):
|
||||
elif media_type in OEB_STYLES:
|
||||
for link in container.iterlinks(name):
|
||||
ans[link].append(name)
|
||||
return ans
|
||||
return dict(ans)
|
||||
|
||||
|
||||
def get_filename(original_url_parsed, response):
|
||||
|
@ -168,7 +168,7 @@
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label_8">
|
||||
<property name="text">
|
||||
<string>&Monospaced font family:</string>
|
||||
<string>&Monospace font family:</string>
|
||||
</property>
|
||||
<property name="buddy">
|
||||
<cstring>opt_mono_family</cstring>
|
||||
|
@ -135,6 +135,14 @@ class WaitPanel(QWidget):
|
||||
self.la.setStyleSheet('QLabel { font-size: 40px; font-weight: bold }')
|
||||
l.addWidget(self.la, 0, Qt.AlignCenter), l.addStretch()
|
||||
|
||||
@property
|
||||
def msg(self):
|
||||
return self.la.text()
|
||||
|
||||
@msg.setter
|
||||
def msg(self, val):
|
||||
self.la.setText(val)
|
||||
|
||||
|
||||
class WaitStack(QStackedWidget):
|
||||
|
||||
|
@ -100,9 +100,9 @@ def config(defaults=None):
|
||||
fonts('sans_family', default='Verdana' if iswindows else 'Liberation Sans',
|
||||
help=_('The sans-serif font family'))
|
||||
fonts('mono_family', default='Courier New' if iswindows else 'Liberation Mono',
|
||||
help=_('The monospaced font family'))
|
||||
help=_('The monospace font family'))
|
||||
fonts('default_font_size', default=20, help=_('The standard font size in px'))
|
||||
fonts('mono_font_size', default=16, help=_('The monospaced font size in px'))
|
||||
fonts('mono_font_size', default=16, help=_('The monospace font size in px'))
|
||||
fonts('standard_font', default='serif', help=_('The standard font type'))
|
||||
fonts('minimum_font_size', default=8, help=_('The minimum font size in px'))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user