parent
05df8d2f32
commit
92db5a7931
|
@ -7,9 +7,9 @@ def download_font():
|
||||||
import requests
|
import requests
|
||||||
url = 'https://github.com/google/fonts/raw/master/apache/roboto/static/Roboto-Regular.ttf'
|
url = 'https://github.com/google/fonts/raw/master/apache/roboto/static/Roboto-Regular.ttf'
|
||||||
font = requests.get(url)
|
font = requests.get(url)
|
||||||
|
|
||||||
open(fontfile, 'wb').write(font.content)
|
open(fontfile, 'wb').write(font.content)
|
||||||
except:
|
except:
|
||||||
raise("Error getting font or storing")
|
raise("Error getting font or storing")
|
||||||
else:
|
else:
|
||||||
print("Successfully got font", fontfile)
|
print("Successfully got font", fontfile)
|
||||||
|
|
Loading…
Reference in New Issue