Install Tahoma font in Ubuntu

25,833

Solution 1

You can give try with script:

#!/bin/bash
[ ! -f /usr/share/fonts/truetype/msttcorefonts/tahoma.ttf -o ! -f /usr/share/fonts/truetype/msttcorefonts/tahomabd.ttf ] &&
wget https://sourceforge.net/projects/corefonts/files/OldFiles/IELPKTH.CAB &&
cabextract -F 'tahoma*ttf' IELPKTH.CAB &&
mkdir -p /usr/share/fonts/truetype/msttcorefonts/ &&
mv -f tahoma*ttf /usr/share/fonts/truetype/msttcorefonts/ &&
chmod 644 /usr/share/fonts/truetype/msttcorefonts/tahoma* &&
fc-cache -v &&
rm -f IELPKTH.CAB &&
echo "Installed Tahoma"

Solution 2

what you can do is a simple method.

  1. download tahoma font.

  2. Then copy that downloaded font and all you have to do is paste it in this folder:

/usr/share/fonts/truetype

But since this folder is protected, you will have to open this folder as root. i.e right click and OPEN AS ROOT. provide your password and paste it there. THATS ALL...!!!

Share:
25,833

Related videos on Youtube

user261645
Author by

user261645

Updated on September 18, 2022

Comments

  • user261645
    user261645 almost 2 years

    When I tried to install the font Tahoma with these commands, I got two errors (permissions denied):

    $ cabextract -F 'tahoma*ttf' IELPKTH.CAB
    IELPKTH.CAB: WARNING; possible 5592 extra bytes at end of file.
    Extracting cabinet: IELPKTH.CAB
      extracting tahoma.ttf
    tahoma.ttf: Permission denied
      extracting tahomabd.ttf
    tahomabd.ttf: Permission denied
    
    $ wget http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/EN-US/IELPKTH.CAB
    cabextract -F 'tahoma*ttf' IELPKTH.CAB
    mkdir -p /usr/share/fonts/truetype/msttcorefonts/
    mv -f tahoma*ttf /usr/share/fonts/truetype/msttcorefonts/
    chmod 644 /usr/share/fonts/truetype/msttcorefonts/tahoma*
    fc-cache -v
    rm -f IELPKTH.CAB
    
    • douggro
      douggro over 10 years
      You would probably be better off installing the ubuntu-restricted-extras which includes the core MS .ttf fonts which includes Tahoma. See this post for info.
    • RobotMan
      RobotMan over 10 years
      sorry, have you tried as root?
    • redanimalwar
      redanimalwar over 9 years
      @douggro you are wrong, tahoma ist not inside the ttf-mscorefonts-installer package, its only Times New Roman and some other fonts.
  • David Foerster
    David Foerster almost 8 years
    -1 That won't work because the cabextract command fails. Nothing related to sudo.
  • terdon
    terdon almost 8 years
    @DavidFoerster i) we're not lawyers, if Microsoft has an issue with a very well know page, I'm sure they have the legal muscle to deal with it. ii) Since the Microsoft page for the Tahoma font actually links directly to the fonts.com page in this answer, I think it's safe to assume that no copyright is being violated and Microsoft is fine with this redistribution.
  • David Foerster
    David Foerster almost 8 years
    @terdon: I agree that Microsoft seems to be fine with distribution in general. However Fontpalace.com is not Fonts.com and distributes the font without a license notice (the page says “License: Unknown”); I doubt that the distribution is still legal under that circumstance.
  • David Foerster
    David Foerster almost 8 years
    I circumvented the issue by editing the answer to link to the Font.com page instead. That should resolve it.
  • terdon
    terdon almost 8 years
    @DavidFoerster I stand corrected, I thought the link was already pointing to fonts.com. Sorry. However, it really isn't our job to deal with copyright issues. And downvoting for that reason seems strange to say the least.
  • kavadias
    kavadias over 6 years
    From $49 ? You have to be kidding.... I used the script, in the other answer, for free!
  • rofrol
    rofrol over 4 years