mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
609724c65b
commit
6b644e1b87
@ -111,10 +111,12 @@ def all():
|
|||||||
from calibre.utils.fonts.scanner import font_scanner
|
from calibre.utils.fonts.scanner import font_scanner
|
||||||
failed = []
|
failed = []
|
||||||
unsupported = []
|
unsupported = []
|
||||||
|
total = 0
|
||||||
for family in font_scanner.find_font_families():
|
for family in font_scanner.find_font_families():
|
||||||
for font in font_scanner.fonts_for_family(family):
|
for font in font_scanner.fonts_for_family(family):
|
||||||
raw = font_scanner.get_font_data(font)
|
raw = font_scanner.get_font_data(font)
|
||||||
print ('Subsetting', font['full_name'], end='\t')
|
print ('Subsetting', font['full_name'], end='\t')
|
||||||
|
total += 1
|
||||||
try:
|
try:
|
||||||
sf, old_stats, new_stats = subset(raw, set(('a', 'b', 'c')), ())
|
sf, old_stats, new_stats = subset(raw, set(('a', 'b', 'c')), ())
|
||||||
except NoGlyphs:
|
except NoGlyphs:
|
||||||
@ -141,6 +143,9 @@ def all():
|
|||||||
print (name, path, err)
|
print (name, path, err)
|
||||||
print()
|
print()
|
||||||
|
|
||||||
|
print('Total:', total, 'Unsupported:', len(unsupported), 'Failed:',
|
||||||
|
len(failed))
|
||||||
|
|
||||||
|
|
||||||
def main(args):
|
def main(args):
|
||||||
import sys, time
|
import sys, time
|
||||||
|
Loading…
x
Reference in New Issue
Block a user