changed google drive fonts for git repo
This commit is contained in:
+2
-6
@@ -281,12 +281,8 @@ def msic_configs():
|
|||||||
|
|
||||||
os.chdir(os.path.join(current_dir,'misic'))
|
os.chdir(os.path.join(current_dir,'misic'))
|
||||||
|
|
||||||
#### Fonts
|
subprocess.check_call('git clone https://github.com/acidburnmonkey/fonts.git', shell=True)
|
||||||
# https://drive.google.com/drive/folders/1BciF4x3_K3T8p1Y17lHn_xWXnSAZpvDE
|
shutil.copytree('./fonts/', os.path.join(home,'.fonts'))
|
||||||
fonts_url = 'https://drive.google.com/uc?id=1jebIzgH9BLLn7Ou3xOnSiIj2unIdyXFI'
|
|
||||||
output ='fonts-c.zip'
|
|
||||||
gdown.download(fonts_url,output, quiet=False)
|
|
||||||
subprocess.run(f"unzip {output} -d {os.path.join(home,'.fonts')}",stdout=subprocess.DEVNULL ,shell=True)
|
|
||||||
subprocess.run("fc-cache -f",stdout=subprocess.DEVNULL ,shell=True)
|
subprocess.run("fc-cache -f",stdout=subprocess.DEVNULL ,shell=True)
|
||||||
|
|
||||||
console.print("Fonts downloaded :heavy_check_mark:", style='ok')
|
console.print("Fonts downloaded :heavy_check_mark:", style='ok')
|
||||||
|
|||||||
Reference in New Issue
Block a user