Una de las cosas que mas sucede y que muchas veces no permite que la gente migre al software libre es: que cuando deja de usar el Windows, todos los documentos pierden el formato, esto pasa porque en la versión del software no tenemos las fuentes, para solventarlo podemos hacer:
Primera opción:
Primera opción:
Instalamos las fuentes desde el repositorio:
apt-get install msttcorefonts, aunque yo siempre uso aptitude
apt-get install msttcorefonts, aunque yo siempre uso aptitude
Luego las habilitamos:
fc-cache -fv
Segunda opción:
Copiar la carpeta fuentes del directorio c:\Windows\, en el directorio: /usr/share/fonts/, para que quede con estética le colocaremos de nombre a la carpeta Windows, teniendo como resultado final /usr/share/fonts/Windows, le cambiamos los permisos:
Segunda opción:
Copiar la carpeta fuentes del directorio c:\Windows\, en el directorio: /usr/share/fonts/, para que quede con estética le colocaremos de nombre a la carpeta Windows, teniendo como resultado final /usr/share/fonts/Windows, le cambiamos los permisos:
chmod 755 /usr/share/fonts/Windows
Le cambiamos el propietario:
chown -Rf root:root /usr/share/fonts/Windows
Por ultimo habilitamos las fuentes con:
fc-cache -fv
Creas un script como este:
#!/bin/bash
#
# This script helps to install fonts
#
# Set your default font storage directory here
##DEFAULT_DIR="$HOME/fonts"
DEFAULT_DIR=`pwd`
# Set the default font installation directory here
DEFAULT_DEST="/usr/share/fonts/truetype/font-install"
# Don't edit anything below unless you know what you're doing.
echo "In which directory are the fonts?"
echo -n "[$DEFAULT_DIR] "
read DIR
echo
echo "What is the extention (without the dot) of the fonts?"
echo -n "[ttf] "
read EXT
echo
echo "Where should the fonts be installed?"
echo "DO NOT CHANGE THIS UNLESS YOU KNOW WHAT YOU'RE DOING!"
echo -n "[$DEFAULT_DEST] "
read DEST
if [ -z "$DIR" ]; then
DIR="$DEFAULT_DIR"
fi
if [ -z "$EXT" ]; then
EXT="ttf"
fi
if [ -z "$DEST" ]; then
DEST="$DEFAULT_DEST"
fi
sudo -v
if [ $? != 0 ]; then
echo "Unable to obtain the necessary privileges. Exiting..."
echo -n "Press <Enter> to continue. "
read WER
exit $?
fi
echo
echo
if [ ! -d "$DIR" ]; then
echo "Directory $DIR does not exist. Exiting..."
echo -n "Press <Enter> to continue. "
read SDF
exit 2
fi
if [ ! -d "$DEST" ]; then
echo "Directory $DEST does not exist. Exiting..."
echo -n "Press <Enter> to continue. "
read DFG
exit 1
fi
echo "Copying fonts..."
cd "$DIR"
for i in *."$EXT"; do
sudo cp -iv "$i" "$DEST"
done
echo
echo
echo "Updating the font cache..."
sudo fc-cache -fv
if [ $? != 0 ]; then
echo "Error updating the font cache. Your fonts haven't been completely installed. Try running sudo fc-cache -fv manually. Exiting..."
echo -n "Press <Enter> to continue."
read FSF
exit $?
fi
echo
echo
echo "Finished."
echo
echo "You will probably need to restart running programs to use the new fonts."
echo -n "Press <Enter> to exit. "
read WERT
exit 0
Le das permisos de ejecución:
chmod +x nombre_del_archivo_script
Y lo ejecutas:
./nombre_del_archivo_script o sh nombre_del_archivo_scrip
Para obtener las funtes de Ubuntu:
wget http://sourceforge.net/projects/linuxfreedomfor/files/Ubuntu.tar.gz
Lo descomprimes y mueves al directorio:
tar -xvzf Ubuntu.tar.gz && mv Ubuntu /usr/share/fonts/
Por ultimo sigues los pasos de la segunda opción.
Para las fuentes de Goolge:
wget http://webupd8.googlecode.com/files/install-google-fonts
Le das permisos de ejecución:
chmod +x install-google-fonts
Ejecutas:
./install-google-fonts o sh install-google-fonts
Listo
No hay comentarios:
Publicar un comentario