mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
0cce42a313
commit
f897286e3c
@ -54,7 +54,10 @@ def subset_all_fonts(container, font_stats, report):
|
||||
olen = sum(old_sizes.itervalues())
|
||||
nlen = sum(new_sizes.itervalues())
|
||||
total_new += len(nraw)
|
||||
report('Decreased the font %s to %.1f%% of its original size'%
|
||||
if nlen == olen:
|
||||
report('The font %s was already subset'%font_name)
|
||||
else:
|
||||
report('Decreased the font %s to %.1f%% of its original size'%
|
||||
(font_name, nlen/olen * 100))
|
||||
f.seek(0), f.truncate(), f.write(nraw)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user