Last active
          July 23, 2024 07:56 
        
      - 
      
- 
        Save maxwelleite/ee5a1a4222dd43c8b4af5c99ed72b3fc to your computer and use it in GitHub Desktop. 
Revisions
- 
        maxwelleite revised this gist Nov 20, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -41,7 +41,7 @@ else fi echo -e "\n:: Downloading Tahoma Bold from Wine Project...\n" wget -O "$file2" https://source.winehq.org/git/wine.git/blob/HEAD:/fonts/tahomabd.ttf if [ $? -ne 0 ]; then rm -f "$file2" echo -e "\nError: Download Tahoma Bold failed!?\n" 
- 
        maxwelleite revised this gist Nov 20, 2020 . 1 changed file with 4 additions and 3 deletions.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,7 +6,8 @@ # designed to have identical metrics to the Microsoft Tahoma font. This was done because Tahoma is available by default # on Windows, and many applications expect the font to be available. # Dependencies: wget # Tested: Ubuntu Saucy/Trusty/Xenial/Bionic # Latest Update: 20/11/2020 output_dir="/usr/share/fonts/truetype/msttcorefonts/" tmp_dir="/tmp/ttf-wine-tahoma-installer" @@ -30,7 +31,7 @@ cd "$tmp_dir" err=0 echo -e "\n:: Downloading Tahoma Regular from Wine Project...\n" wget -O "$file1" https://source.winehq.org/git/wine.git/blob/HEAD:/fonts/tahoma.ttf if [ $? -ne 0 ]; then rm -f "$file1" echo -e "\nError: Download Tahoma Regular failed!?\n" @@ -40,7 +41,7 @@ else fi echo -e "\n:: Downloading Tahoma Bold from Wine Project...\n" wget -O "$file2" https://source.winehq.org/git/wine.git/blob_plain/HEAD:/fonts/tahomabd.ttf if [ $? -ne 0 ]; then rm -f "$file2" echo -e "\nError: Download Tahoma Bold failed!?\n" 
- 
        maxwelleite revised this gist Aug 21, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ #!/bin/bash # Author: Maxwel Leite # Website: http://needforbits.wordpress.com/ # Description: Script to install the latest Wine Tahoma Regular and Wine Tahoma Bold fonts on Ubuntu distros from the Wine Project. # The Wine project includes the free and open-source fonts Wine Tahoma Regular and Wine Tahoma Bold released under LGPL # designed to have identical metrics to the Microsoft Tahoma font. This was done because Tahoma is available by default 
- 
        maxwelleite created this gist Jul 7, 2017 .There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,79 @@ #!/bin/bash # Author: Maxwel Leite # Website: http://needforbits.tumblr.com/ # Description: Script to install the latest Wine Tahoma Regular and Wine Tahoma Bold fonts on Ubuntu distros from the Wine Project. # The Wine project includes the free and open-source fonts Wine Tahoma Regular and Wine Tahoma Bold released under LGPL # designed to have identical metrics to the Microsoft Tahoma font. This was done because Tahoma is available by default # on Windows, and many applications expect the font to be available. # Dependencies: wget # Tested: Ubuntu Saucy/Trusty/Xenial output_dir="/usr/share/fonts/truetype/msttcorefonts/" tmp_dir="/tmp/ttf-wine-tahoma-installer" if [[ $EUID -ne 0 ]]; then echo -e "You must be a root user!\nTry: sudo ./ttf-wine-tahoma-installer.sh" 2>&1 exit 1 fi if ! which wget >/dev/null; then echo "Error: wget is required to download the file" echo "Run the following command to install it:" echo "sudo apt-get install wget" exit 1 fi file1="$tmp_dir/tahoma.ttf" file2="$tmp_dir/tahomabd.ttf" mkdir -p "$tmp_dir" cd "$tmp_dir" err=0 echo -e "\n:: Downloading Tahoma Regular from Wine Project...\n" wget -O "$file1" http://source.winehq.org/source/fonts/tahoma.ttf?_raw=1 if [ $? -ne 0 ]; then rm -f "$file1" echo -e "\nError: Download Tahoma Regular failed!?\n" err=1 else echo -e "Done!\n" fi echo -e "\n:: Downloading Tahoma Bold from Wine Project...\n" wget -O "$file2" http://source.winehq.org/source/fonts/tahomabd.ttf?_raw=1 if [ $? -ne 0 ]; then rm -f "$file2" echo -e "\nError: Download Tahoma Bold failed!?\n" err=1 else echo -e "Done!\n" fi if [ $err -ne 1 ]; then echo -n ":: Installing... " mkdir -p "$output_dir" cp -f "$tmp_dir"/*.ttf "$output_dir" &> /dev/null if [ $? -ne 0 ]; then echo "Error: Can't copy files to output directory." err=1 else echo "Done!" fi fi if [ $err -ne 1 ]; then echo -n ":: Clean the font cache... " fc-cache -f "$output_dir" &> /dev/null echo "Done!" fi echo -n ":: Cleanup... " cd - &> /dev/null rm -rf "$tmp_dir" &> /dev/null echo "Done!" if [ $err -ne 1 ]; then echo -e "\nCongratulations! Installation of ttf-wine-tahoma-installer is successful!!\n" else echo -e "\nSome error occurred! Please try again!!\n" fi