|
|
@ -361,10 +361,10 @@ class Bureau(object):
|
|
|
|
fontlist = []
|
|
|
|
fontlist = []
|
|
|
|
for font in glob.glob(fontsdir + "/*.otf"):
|
|
|
|
for font in glob.glob(fontsdir + "/*.otf"):
|
|
|
|
fontlist.append(("local", "file://" + font))
|
|
|
|
fontlist.append(("local", "file://" + font))
|
|
|
|
self.log.debug("adding font " + str(fdict))
|
|
|
|
self.log.debug("adding font " + font)
|
|
|
|
for font in glob.glob(fontsdir + "/*.ttf"):
|
|
|
|
for font in glob.glob(fontsdir + "/*.ttf"):
|
|
|
|
fontlist.append(("local", "file://" + font))
|
|
|
|
fontlist.append(("local", "file://" + font))
|
|
|
|
self.log.debug("adding font " + str(fdict))
|
|
|
|
self.log.debug("adding font " + font)
|
|
|
|
fdict = { "src": fontlist }
|
|
|
|
fdict = { "src": fontlist }
|
|
|
|
fontconfig.add_font_face(fdict,
|
|
|
|
fontconfig.add_font_face(fdict,
|
|
|
|
weasyprint.default_url_fetcher)
|
|
|
|
weasyprint.default_url_fetcher)
|
|
|
|