Fuetes de Vista ClearType en Ubuntu
Visual | 2 de Noviembre de 2007
Puede resultar útil para obtener mejor compatibilidad o simplemente si te gustan esta fuentes. Microsoft vista tiene las fuentes ClearType Constantia, Corbel, Calibri, Cambria, Candara y Consolas.
Para instalarlas tenes que tener instalado Cabextract, si instalaste el paquete ubuntu-restricted-extras ya lo tienes, sinó
sudo apt-get install cabextract
Despues hay que abrir una terminal:
gedit fuentes-vista.sh
Copias y pegas este texto:
#!/bin/sh# Copyright (c) 2007 Aristotle Pagaltzis#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.set -e
exists() { which "$1" &> /dev/null ; }
if ! [ -d ~/.fonts ] ; then
exec 2>&1
echo 'There is no .fonts directory in your home.'
echo 'Is fontconfig set up for privately installed fonts?'
exit 1
fi
# split up to keep the download command short
DL_HOST=download.microsoft.com
DL_PATH=download/f/5/a/f5a3df76-d856-4a61-a6bd-722f52a5be26
ARCHIVE=PowerPointViewer.exe
URL="http://$DL_HOST/$DL_PATH/$ARCHIVE"
if ! [ -e "$ARCHIVE" ] ; then
if exists curl ; then curl -O "$URL"
elif exists wget ; then wget "$URL"
elif exists fetch ; then fetch "$URL"
fi
fi
TMPDIR=`mktemp -d`
trap 'rm -rf "$TMPDIR"' EXIT SIGINT SIGQUIT SIGTERM
cabextract -L -F ppviewer.cab -d "$TMPDIR" "$ARCHIVE"
cabextract -L -F '*.TTF' -d ~/.fonts "$TMPDIR/ppviewer.cab"
( cd ~/.fonts && chmod 600 \
calibri.ttf calibrib.ttf calibrii.ttf calibriz.ttf \
cambriab.ttf cambriai.ttf cambriaz.ttf \
candara.ttf candarab.ttf candarai.ttf candaraz.ttf \
consola.ttf consolab.ttf consolai.ttf consolaz.ttf \
constan.ttf constanb.ttf constani.ttf constanz.ttf \
corbel.ttf corbelb.ttf corbeli.ttf corbelz.ttf )
fc-cache -fv ~/.fonts
Es necesario reemplazar la primer linea por #!/bin/bash
Guardas y cerras, en la misma terminal le das permiso de ejecución al archivo:
sudo chmod a+x ~/fuentes-vista.sh
Creamos la carpeta “.fonts” si no la tenemos:
mkdir .fonts
Y solo queda ejecutarlo, descarga e instala las fuentes automáticamente.
sudo ~/fuentes-vista.sh
ADVERTENCIA: De acuerdo a los términos y condiciones estas fuentes están restringidas para ser utilizadas solo en Microsoft Windows/Vista, instalarlas en otro sistema operativo corre por tu propio riesgo. Te recomiendo que te des una vuelta por los otros post y veas la cantidad de fuentes disponibles bajo una licencia menos tiránica.








