mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
IGN:...
This commit is contained in:
parent
ccd1c31673
commit
07badb20df
@ -424,8 +424,12 @@ def entity_to_unicode(match, exceptions=[], encoding='cp1252'):
|
|||||||
|
|
||||||
if isosx:
|
if isosx:
|
||||||
fdir = os.path.expanduser('~/.fonts')
|
fdir = os.path.expanduser('~/.fonts')
|
||||||
|
try:
|
||||||
if not os.path.exists(fdir):
|
if not os.path.exists(fdir):
|
||||||
os.makedirs(fdir)
|
os.makedirs(fdir)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
if not os.path.exists(os.path.join(fdir, 'LiberationSans_Regular.ttf')):
|
if not os.path.exists(os.path.join(fdir, 'LiberationSans_Regular.ttf')):
|
||||||
from calibre.ebooks.lrf.fonts.liberation import __all__ as fonts
|
from calibre.ebooks.lrf.fonts.liberation import __all__ as fonts
|
||||||
for font in fonts:
|
for font in fonts:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user