jersonalvr commited on
Commit
552a6d8
verified
1 Parent(s): 81dea93

Create instalar_fuentes.sh

Browse files
Files changed (1) hide show
  1. instalar_fuentes.sh +93 -0
instalar_fuentes.sh ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ # Crear el directorio de fuentes si no existe
4
+ mkdir -p ~/.fonts
5
+
6
+ # Funci贸n para descargar y descomprimir archivos ZIP
7
+ download_and_unzip() {
8
+ local url=$1
9
+ local dest=$2
10
+ wget "$url" -O /tmp/temp.zip
11
+ unzip /tmp/temp.zip -d "$dest"
12
+ rm /tmp/temp.zip
13
+ }
14
+
15
+ # Funci贸n para descargar archivos directamente
16
+ download_font() {
17
+ local url=$1
18
+ local dest=$2
19
+ wget "$url" -O "$dest"
20
+ }
21
+
22
+ echo "Descargando e instalando fuentes..."
23
+
24
+ # Noto Fonts (Familia de fuentes Unicode completa de Google)
25
+ download_and_unzip "https://noto-website-2.storage.googleapis.com/pkgs/Noto_Sans.zip" ~/.fonts
26
+ download_and_unzip "https://noto-website-2.storage.googleapis.com/pkgs/Noto_Serif.zip" ~/.fonts
27
+
28
+ # DejaVu Fonts (Fuentes Unicode completas)
29
+ download_and_unzip "https://github.com/dejavu-fonts/dejavu-fonts/releases/download/v2.37/dejavu-fonts-ttf-2.37.zip" /tmp/dejavu
30
+ cp /tmp/dejavu/ttf/*.ttf ~/.fonts/
31
+ rm -rf /tmp/dejavu*
32
+
33
+ # Roboto Fonts (Fuente est谩ndar de Google)
34
+ download_font "https://github.com/google/fonts/raw/main/apache/roboto/Roboto-Regular.ttf" ~/.fonts/Roboto-Regular.ttf
35
+ download_font "https://github.com/google/fonts/raw/main/apache/roboto/Roboto-Bold.ttf" ~/.fonts/Roboto-Bold.ttf
36
+ download_font "https://github.com/google/fonts/raw/main/apache/roboto/Roboto-Italic.ttf" ~/.fonts/Roboto-Italic.ttf
37
+ download_font "https://github.com/google/fonts/raw/main/apache/roboto/Roboto-BoldItalic.ttf" ~/.fonts/Roboto-BoldItalic.ttf
38
+
39
+ # Source Sans Pro (Fuente sans-serif de Google, buena para espa帽ol y otros idiomas)
40
+ download_font "https://github.com/google/fonts/raw/main/ofl/sourcesanspro/SourceSansPro-Regular.ttf" ~/.fonts/SourceSansPro-Regular.ttf
41
+ download_font "https://github.com/google/fonts/raw/main/ofl/sourcesanspro/SourceSansPro-Bold.ttf" ~/.fonts/SourceSansPro-Bold.ttf
42
+ download_font "https://github.com/google/fonts/raw/main/ofl/sourcesanspro/SourceSansPro-Italic.ttf" ~/.fonts/SourceSansPro-Italic.ttf
43
+ download_font "https://github.com/google/fonts/raw/main/ofl/sourcesanspro/SourceSansPro-BoldItalic.ttf" ~/.fonts/SourceSansPro-BoldItalic.ttf
44
+
45
+ # Fira Code (Fuente monoespaciada para programaci贸n)
46
+ download_font "https://github.com/tonsky/FiraCode/releases/download/6.2/Fira_Code_v6.2.zip" /tmp/fira
47
+ unzip /tmp/fira/Fira_Code_v6.2.zip -d /tmp/fira
48
+ cp /tmp/fira/ttf/*.ttf ~/.fonts/
49
+ rm -rf /tmp/fira*
50
+
51
+ # Liberation Fonts (Fuentes equivalentes a Arial, Times New Roman y Courier)
52
+ download_and_unzip "https://github.com/liberationfonts/liberation-fonts/files/7205284/LiberationFonts-2.1.4.zip" ~/.fonts
53
+
54
+ # Ubuntu Fonts (Fuente oficial de Ubuntu)
55
+ download_font "https://github.com/google/fonts/raw/main/ufl/ubuntu/Ubuntu-R.ttf" ~/.fonts/Ubuntu-R.ttf
56
+ download_font "https://github.com/google/fonts/raw/main/ufl/ubuntu/Ubuntu-B.ttf" ~/.fonts/Ubuntu-B.ttf
57
+ download_font "https://github.com/google/fonts/raw/main/ufl/ubuntu/Ubuntu-Italic.ttf" ~/.fonts/Ubuntu-Italic.ttf
58
+ download_font "https://github.com/google/fonts/raw/main/ufl/ubuntu/Ubuntu-BI.ttf" ~/.fonts/Ubuntu-BI.ttf
59
+
60
+ # Open Sans (Otra fuente sans-serif popular de Google)
61
+ download_font "https://github.com/google/fonts/raw/main/apache/opensans/OpenSans-Regular.ttf" ~/.fonts/OpenSans-Regular.ttf
62
+ download_font "https://github.com/google/fonts/raw/main/apache/opensans/OpenSans-Bold.ttf" ~/.fonts/OpenSans-Bold.ttf
63
+ download_font "https://github.com/google/fonts/raw/main/apache/opensans/OpenSans-Italic.ttf" ~/.fonts/OpenSans-Italic.ttf
64
+ download_font "https://github.com/google/fonts/raw/main/apache/opensans/OpenSans-BoldItalic.ttf" ~/.fonts/OpenSans-BoldItalic.ttf
65
+
66
+ # Merriweather (Fuente serif legible para pantalla)
67
+ download_font "https://github.com/google/fonts/raw/main/ofl/merriweather/Merriweather-Regular.ttf" ~/.fonts/Merriweather-Regular.ttf
68
+ download_font "https://github.com/google/fonts/raw/main/ofl/merriweather/Merriweather-Bold.ttf" ~/.fonts/Merriweather-Bold.ttf
69
+ download_font "https://github.com/google/fonts/raw/main/ofl/merriweather/Merriweather-Italic.ttf" ~/.fonts/Merriweather-Italic.ttf
70
+ download_font "https://github.com/google/fonts/raw/main/ofl/merriweather/Merriweather-BoldItalic.ttf" ~/.fonts/Merriweather-BoldItalic.ttf
71
+
72
+ # Cascadia Code (Fuente monoespaciada moderna para programadores)
73
+ download_font "https://github.com/microsoft/cascadia-code/releases/download/v2104.21/CascadiaCode-2104.21.zip" /tmp/cascadia
74
+ unzip /tmp/cascadia/CascadiaCode-2104.21.zip -d /tmp/cascadia
75
+ cp /tmp/cascadia/*.ttf ~/.fonts/
76
+ rm -rf /tmp/cascadia*
77
+
78
+ # Hack (Otra fuente monoespaciada para programadores)
79
+ download_and_unzip "https://github.com/source-foundry/Hack/releases/download/v3.003/Hack-v3.003-ttf.zip" /tmp/hack
80
+ cp /tmp/hack/*.ttf ~/.fonts/
81
+ rm -rf /tmp/hack*
82
+
83
+ # Icon Fonts (Opcional: para iconos en aplicaciones)
84
+ download_and_unzip "https://github.com/ryanoasis/nerd-fonts/releases/download/v2.3.3/RobotoMono.zip" /tmp/nerd-fonts
85
+ cp /tmp/nerd-fonts/*.ttf ~/.fonts/
86
+ rm -rf /tmp/nerd-fonts*
87
+
88
+ # Rebuild font cache
89
+ echo "Reconstruyendo la cach茅 de fuentes..."
90
+ fc-cache -fv
91
+
92
+ echo "Instalaci贸n de fuentes completada."
93
+