Vista Fonts Installer Commands

3
Vista fonts installer commands Microsoft Vista fonts installation (like Calibri) Source: http://community.linuxmint.com/tutorial/view/365 I modified original script vistafonts-installer to download and install fonts to folder /usr/share/fonts. Original script used ~/.fonts folder, but I think that system folder is better because one fonts can use multiple users. 1. Download modified installation script and save it to Downloads folder in your home directory http://www.korecky.org/Downloads/scripts/vistafonts- installer-modified 2. 3. Install curl package sudo apt-get install curl 4. 5. Run installation script sudo ~/Downloads/vistafonts-installer-mofied 6. We have to fix problem with messes up ligatures when displaying Calibri font 1. Open fonts.conf as root sudo nano /etc/fonts/fonts.conf 2. Paste at the end of file, before element </fontconfig>, these XML lines <match target="font" > <edit name="embeddedbitmap" mode="assign"> <bool>false</bool> </edit> </match>

description

Linux

Transcript of Vista Fonts Installer Commands

Page 1: Vista Fonts Installer Commands

Vista fonts installer commands

Microsoft Vista fonts installation (like Calibri)

Source: http://community.linuxmint.com/tutorial/view/365

I modified original script vistafonts-installer to download and install fonts to folder /usr/share/fonts. Original script used ~/.fonts folder, but I think that system folder is better because one fonts can use multiple users.

1. Download modified installation script and save it to Downloads folder in your home directory

http://www.korecky.org/Downloads/scripts/vistafonts-installer-modified

2.3. Install curl package

sudo apt-get install curl4.5. Run installation script

sudo ~/Downloads/vistafonts-installer-mofied6.

We have to fix problem with messes up ligatures when displaying Calibri font

1. Open fonts.conf as rootsudo nano /etc/fonts/fonts.conf

2. Paste at the end of file, before element </fontconfig>, these XML lines

<match target="font" >    <edit name="embeddedbitmap" mode="assign">        <bool>false</bool>    </edit></match>

3.4. Save fonts.conf file and restart computer

#!/bin/sh# Copyright (c) 2007 Aristotle Pagaltzis# # Permission is hereby granted, free of charge, to any person obtaining a copy

Page 2: Vista Fonts Installer Commands

# 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 ; }

# split up to keep the download command shortDL_HOST=download.microsoft.comDL_PATH=download/f/5/a/f5a3df76-d856-4a61-a6bd-722f52a5be26ARCHIVE=PowerPointViewer.exeURL="http://$DL_HOST/$DL_PATH/$ARCHIVE"

if ! [ -e "$ARCHIVE" ] ; thenif exists curl ; then curl -O "$URL"elif exists wget ; then wget "$URL"elif exists fetch ; then fetch "$URL"fi

fi

TMPDIR=`mktemp -d`

Page 3: Vista Fonts Installer Commands

trap 'rm -rf "$TMPDIR"' EXIT INT QUIT TERM

cabextract -L -F ppviewer.cab -d "$TMPDIR" "$ARCHIVE"

if ! [ -d /usr/share/fonts/truetype/vista ] ; thenmkdir /usr/share/fonts/truetype/vista

ficabextract -L -F '*.TT[FC]' -d /usr/share/fonts/truetype/vista "$TMPDIR/ppviewer.cab"