[segnalazione] i fonts di windows vista

4 risposte [Ultimo messaggio]
Ritratto di anubis
anubis
(Guru)
Offline
Guru
Iscritto: 07/04/2007
Messaggi: 3656

siniori e siniori Smile

ecco uno script (da lancirare come utonto root) per installare i fonts per windows vista:

#!/bin/bash<br /><br />set -e<br /><br />if [ ! -w /root ]; then<br />  echo &quot;You have to be root to use this script&quot; &gt;&amp;2<br />        exit 1<br />fi<br /><br />exists() { which &quot;$1&quot; &amp;&gt; /dev/null ; }<br /><br />if ! [ -d /usr/share/fonts/vista ] ; then<br />    exec 2&gt;&amp;1<br />  mkdir -p /usr/share/fonts/vista<br />   exit 1<br />fi<br /><br /># split up to keep the download command short<br />DL_HOST=download.microsoft.com<br />DL_PATH=download/f/5/a/f5a3df76-d856-4a61-a6bd-722f52a5be26<br />ARCHIVE=PowerPointViewer.exe<br />URL=&quot;http://$DL_HOST/$DL_PATH/$ARCHIVE&quot;<br /><br />if ! [ -e &quot;$ARCHIVE&quot; ] ; then<br />  if   exists curl  ; then curl -O &quot;$URL&quot;<br /> elif exists wget  ; then wget    &quot;$URL&quot;<br /> elif exists fetch ; then fetch   &quot;$URL&quot;<br /> fi<br />fi<br /><br />TMPDIR=`mktemp -d`<br />trap &#039;rm -rf &quot;$TMPDIR&quot;&#039; EXIT INT QUIT TERM<br /><br />cabextract -L -F ppviewer.cab -d &quot;$TMPDIR&quot; &quot;$ARCHIVE&quot;<br /><br />cabextract -L -F &#039;*.TT[FC]&#039; -d /usr/share/fonts/vista &quot;$TMPDIR/ppviewer.cab&quot;<br /><br />( cd /usr/share/fonts/vista &amp;&amp; mv cambria.ttc cambria.ttf &amp;&amp; chmod 664 \<br /> calibri{,b,i,z}.ttf cambria{,b,i,z}.ttf candara{,b,i,z}.ttf \<br />     consola{,b,i,z}.ttf constan{,b,i,z}.ttf corbel{,b,i,z}.ttf )<br /><br />fc-cache -fv /usr/share/fonts/vista<br /><br />rm &quot;$ARCHIVE&quot;<br /><br />echo &quot;Fonts installed successful&quot; &gt;&amp;2

OpenSUSE Member,Packman Packager, Education Project Admin, LXDE Project Admin
Powered by http://en.opensuse.org/HP_Pavilion_dv6855el

Ritratto di deckard
deckard (non verificato)
()

Ottimo, ecco il file pronto:

microsoft_font.sh

Laughing

Ritratto di hawake
hawake
(Geek)
Offline
Geek
Iscritto: 11/02/2007
Messaggi: 161

Aaaaaaaa che sono questi thread, in questo forum!

Basta, chiedete scusa subito proponendo come mettere i Liberation di Red Hat! Si proprio Red Hat, i nostri cari rivali! :-P

Intel Core i5 2.66 Ghz , 4 GB di RAM, Sapphire ATi HD 5830 , 1 TB WD + 0.5 TB WD , Mouse Oker for Videogamers.

openSUSE 12.1

Ritratto di Senofonte1
Senofonte1
(Guru)
Offline
Guru
Iscritto: 27/01/2007
Messaggi: 924

Sento odore di conversione......... Laughing

GRAZIE A DIO, SONO ATEO!

Il pensare è la ragione prima e ultima dell'umano essere (Senofonte1)

Ritratto di ap1978
ap1978
(Guru)
Offline
Guru
Iscritto: 01/10/2004
Messaggi: 2972

Quote:

hawake ha scritto:
Aaaaaaaa che sono questi thread, in questo forum!

Basta, chiedete scusa subito proponendo come mettere i Liberation di Red Hat! Si proprio Red Hat, i nostri cari rivali! :-P

I liberation fonts sono già installati di default in 11.1 Wink

Ciao

ap Big Grin