mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
0a508d2ff5
commit
83126c4bf5
@ -67,8 +67,8 @@ def embed_font(container, font, all_font_rules, report, warned):
|
||||
rule['src'] = 'url(%s)' % href
|
||||
rule['name'] = name
|
||||
return rule
|
||||
msg = _('Failed to find font matching: family: %s; weight: %s; style: %s; stretch: %s') % (
|
||||
ff, font['font-weight'], font['font-style'], font['font-stretch'])
|
||||
msg = _('Failed to find font matching: family: %(family)s; weight: %(weight)s; style: %(style)s; stretch: %(stretch)s') % dict(
|
||||
family=ff, weight=font['font-weight'], style=font['font-style'], stretch=font['font-stretch'])
|
||||
if msg not in warned:
|
||||
warned.add(msg)
|
||||
report(msg)
|
||||
|
@ -31,7 +31,7 @@ class ProfileModel(QAbstractListModel):
|
||||
if w >= 10000:
|
||||
ss = _('unlimited')
|
||||
else:
|
||||
ss = _('%d x %d pixels') % (w, h)
|
||||
ss = _('%(width)d x %(height)d pixels') % dict(width=w, height=h)
|
||||
ss = _('Screen size: %s') % ss
|
||||
return QVariant('%s [%s]' % (profile.description, ss))
|
||||
return NONE
|
||||
|
Loading…
x
Reference in New Issue
Block a user