Tuesday, May 22, 2007

Ubuntu: How to install Liberation fonts

On May 9, 2007 Red Hat released free fonts under the name Liberation. There are three sets: Sans (a substitute for Arial, Albany, Helvetica, Nimbus Sans L, and Bitstream Vera Sans), Serif (a substitute for Times New Roman, Thorndale, Nimbus Roman, and Bitstream Vera Serif) and Mono (a substitute for Courier New, Cumberland, Courier, Nimbus Mono L, and Bitstream Vera Sans Mono).

Download liberation-fonts-ttf-2.tar.gz and extract.
$ tar xvzf liberation-fonts-ttf-2.tar.gz --wildcards *.ttf

Create folder for the fonts and move font files to that folder (I'm creating folder /usr/share/fonts/truetype/liberation).
$ sudo mkdir /usr/share/fonts/truetype/liberation
$ sudo mv *.ttf /usr/share/fonts/truetype/liberation

Create file liberation.hints in directory /etc/defoma/hints with the following content:
category truetype
begin /usr/share/fonts/truetype/liberation/LiberationSans-Regular.ttf
Family = Sans
FontName = Sans-Regular
Encoding = Unicode
Location = Magyar Dutch Spanish Czech Vietnamese Russian English Catalan Slovak Italian Turkish Danish Slovenian Basque Portuguese German Polish Swedish Norwegian French Finnish Greek
Charset = ISO8859-1 ISO8859-2 ISO8859-3 ISO8859-4 ISO8859-5 ISO8859-6 ISO8859-7 ISO8859-8 ISO8859-9 ISO8859-9e ISO8859-10 ISO8859-13 ISO8859-14 ISO8859-15 KOI8-R KOI8-U CP437 CP850 CP1251 CP1255 VISCII1.1-1 TCVN-5712 TATAR-CYR ISO10646-1
UniCharset = ISO8859-1 ISO8859-2 ISO8859-3 ISO8859-4 ISO8859-5 ISO8859-6 ISO8859-7 ISO8859-8 ISO8859-9 ISO8859-9e ISO8859-10 ISO8859-13 ISO8859-14 ISO8859-15 KOI8-R KOI8-U CP437 CP850 CP1251 CP1255 VISCII1.1-1 TCVN-5712 TATAR-CYR
GeneralFamily = SansSerif
Weight = Medium
Width = Variable
Shape = NoSerif Upright
Foundry = Monotype
Priority = 20
end
begin /usr/share/fonts/truetype/liberation/LiberationSans-Bold.ttf
Family = Sans
FontName = Sans-Bold
Encoding = Unicode
Location = Magyar Dutch Spanish Czech Vietnamese Russian English Catalan Slovak Italian Turkish Danish Slovenian Basque Portuguese German Polish Swedish Norwegian French Finnish Greek
Charset = ISO8859-1 ISO8859-2 ISO8859-3 ISO8859-4 ISO8859-5 ISO8859-6 ISO8859-7 ISO8859-8 ISO8859-9 ISO8859-9e ISO8859-10 ISO8859-13 ISO8859-14 ISO8859-15 KOI8-R KOI8-U CP437 CP850 CP1251 CP1255 VISCII1.1-1 TCVN-5712 TATAR-CYR ISO10646-1
UniCharset = ISO8859-1 ISO8859-2 ISO8859-3 ISO8859-4 ISO8859-5 ISO8859-6 ISO8859-7 ISO8859-8 ISO8859-9 ISO8859-9e ISO8859-10 ISO8859-13 ISO8859-14 ISO8859-15 KOI8-R KOI8-U CP437 CP850 CP1251 CP1255 VISCII1.1-1 TCVN-5712 TATAR-CYR
GeneralFamily = SansSerif
Weight = Bold
Width = Variable
Shape = NoSerif Upright
Foundry = Monotype
Priority = 20
end
begin /usr/share/fonts/truetype/liberation/LiberationSans-BoldItalic.ttf
Family = Sans
FontName = Sans-BoldItalic
Encoding = Unicode
Location = Magyar Dutch Spanish Czech Vietnamese Russian English Catalan Slovak Italian Turkish Danish Slovenian Basque Portuguese German Polish Swedish Norwegian French Finnish Greek
Charset = ISO8859-1 ISO8859-2 ISO8859-3 ISO8859-4 ISO8859-5 ISO8859-7 ISO8859-8 ISO8859-9 ISO8859-9e ISO8859-10 ISO8859-13 ISO8859-14 ISO8859-15 KOI8-R KOI8-U CP437 CP850 CP1251 CP1255 VISCII1.1-1 TCVN-5712 TATAR-CYR ISO10646-1
UniCharset = ISO8859-1 ISO8859-2 ISO8859-3 ISO8859-4 ISO8859-5 ISO8859-7 ISO8859-8 ISO8859-9 ISO8859-9e ISO8859-10 ISO8859-13 ISO8859-14 ISO8859-15 KOI8-R KOI8-U CP437 CP850 CP1251 CP1255 VISCII1.1-1 TCVN-5712 TATAR-CYR
GeneralFamily = SansSerif
Weight = Bold
Width = Variable
Shape = NoSerif Italic
Foundry = Monotype
Priority = 20
end
begin /usr/share/fonts/truetype/liberation/LiberationSans-Italic.ttf
Family = Sans
FontName = Sans-Italic
Encoding = Unicode
Location = Magyar Dutch Spanish Czech Vietnamese Russian English Catalan Slovak Italian Turkish Danish Slovenian Basque Portuguese German Polish Swedish Norwegian French Finnish Greek
Charset = ISO8859-1 ISO8859-2 ISO8859-3 ISO8859-4 ISO8859-5 ISO8859-7 ISO8859-8 ISO8859-9 ISO8859-9e ISO8859-10 ISO8859-13 ISO8859-14 ISO8859-15 KOI8-R KOI8-U CP437 CP850 CP1251 CP1255 VISCII1.1-1 TCVN-5712 TATAR-CYR ISO10646-1
UniCharset = ISO8859-1 ISO8859-2 ISO8859-3 ISO8859-4 ISO8859-5 ISO8859-7 ISO8859-8 ISO8859-9 ISO8859-9e ISO8859-10 ISO8859-13 ISO8859-14 ISO8859-15 KOI8-R KOI8-U CP437 CP850 CP1251 CP1255 VISCII1.1-1 TCVN-5712 TATAR-CYR
GeneralFamily = SansSerif
Weight = Medium
Width = Variable
Shape = NoSerif Italic
Foundry = Monotype
Priority = 20
end
begin /usr/share/fonts/truetype/liberation/LiberationMono-Regular.ttf
Family = Mono
FontName = Mono-Regular
Encoding = Unicode
Location = Magyar Dutch Spanish Czech Vietnamese Russian English Catalan Slovak Italian Turkish Danish Slovenian Basque Portuguese German Polish Swedish Norwegian French Finnish Greek
Charset = ISO8859-1 ISO8859-2 ISO8859-3 ISO8859-4 ISO8859-5 ISO8859-6 ISO8859-7 ISO8859-8 ISO8859-9 ISO8859-9e ISO8859-10 ISO8859-13 ISO8859-14 ISO8859-15 KOI8-R KOI8-U CP437 CP850 CP1251 CP1255 VISCII1.1-1 TCVN-5712 TATAR-CYR ISO10646-1
UniCharset = ISO8859-1 ISO8859-2 ISO8859-3 ISO8859-4 ISO8859-5 ISO8859-6 ISO8859-7 ISO8859-8 ISO8859-9 ISO8859-9e ISO8859-10 ISO8859-13 ISO8859-14 ISO8859-15 KOI8-R KOI8-U CP437 CP850 CP1251 CP1255 VISCII1.1-1 TCVN-5712 TATAR-CYR
GeneralFamily = Typewriter
Weight = Semilight
Width = Fixed
Shape = Serif Upright
Foundry = Monotype
Priority = 20
end
begin /usr/share/fonts/truetype/liberation/LiberationMono-Bold.ttf
Family = Mono
FontName = Mono-Bold
Encoding = Unicode
Location = Magyar Dutch Spanish Czech Vietnamese Russian English Catalan Slovak Italian Turkish Danish Slovenian Basque Portuguese German Polish Swedish Norwegian French Finnish Greek
Charset = ISO8859-1 ISO8859-2 ISO8859-3 ISO8859-4 ISO8859-5 ISO8859-6 ISO8859-7 ISO8859-8 ISO8859-9 ISO8859-9e ISO8859-10 ISO8859-13 ISO8859-14 ISO8859-15 KOI8-R KOI8-U CP437 CP850 CP1251 CP1255 VISCII1.1-1 TCVN-5712 TATAR-CYR ISO10646-1
UniCharset = ISO8859-1 ISO8859-2 ISO8859-3 ISO8859-4 ISO8859-5 ISO8859-6 ISO8859-7 ISO8859-8 ISO8859-9 ISO8859-9e ISO8859-10 ISO8859-13 ISO8859-14 ISO8859-15 KOI8-R KOI8-U CP437 CP850 CP1251 CP1255 VISCII1.1-1 TCVN-5712 TATAR-CYR
GeneralFamily = Typewriter
Weight = Demibold
Width = Fixed
Shape = Serif Upright
Foundry = Monotype
Priority = 20
end
begin /usr/share/fonts/truetype/liberation/LiberationMono-BoldItalic.ttf
Family = Mono
FontName = Mono-BoldItalic
Encoding = Unicode
Location = Magyar Dutch Spanish Czech Russian English Catalan Slovak Italian Turkish Danish Slovenian Basque Portuguese German Polish Swedish Norwegian French Finnish Greek
Charset = ISO8859-1 ISO8859-2 ISO8859-3 ISO8859-4 ISO8859-5 ISO8859-7 ISO8859-8 ISO8859-9 ISO8859-9e ISO8859-10 ISO8859-13 ISO8859-14 ISO8859-15 KOI8-R KOI8-U CP437 CP850 CP1251 CP1255 VISCII1.1-1 TCVN-5712 TATAR-CYR ISO10646-1
UniCharset = ISO8859-1 ISO8859-2 ISO8859-3 ISO8859-4 ISO8859-5 ISO8859-7 ISO8859-8 ISO8859-9 ISO8859-9e ISO8859-10 ISO8859-13 ISO8859-14 ISO8859-15 KOI8-R KOI8-U CP437 CP850 CP1251 CP1255 VISCII1.1-1 TCVN-5712 TATAR-CYR
GeneralFamily = Typewriter
Weight = Demibold
Width = Fixed
Shape = Serif Italic
Foundry = Monotype
Priority = 20
end
begin /usr/share/fonts/truetype/liberation/LiberationMono-Italic.ttf
Family = Mono
FontName = Mono-Italic
Encoding = Unicode
Location = Magyar Dutch Spanish Czech Vietnamese Russian English Catalan Slovak Italian Turkish Danish Slovenian Basque Portuguese German Polish Swedish Norwegian French Finnish Greek
Charset = ISO8859-1 ISO8859-2 ISO8859-3 ISO8859-4 ISO8859-5 ISO8859-7 ISO8859-8 ISO8859-9 ISO8859-9e ISO8859-10 ISO8859-13 ISO8859-14 ISO8859-15 KOI8-R KOI8-U CP437 CP850 CP1251 CP1255 VISCII1.1-1 TCVN-5712 TATAR-CYR ISO10646-1
UniCharset = ISO8859-1 ISO8859-2 ISO8859-3 ISO8859-4 ISO8859-5 ISO8859-7 ISO8859-8 ISO8859-9 ISO8859-9e ISO8859-10 ISO8859-13 ISO8859-14 ISO8859-15 KOI8-R KOI8-U CP437 CP850 CP1251 CP1255 VISCII1.1-1 TCVN-5712 TATAR-CYR
GeneralFamily = Typewriter
Weight = Semilight
Width = Fixed
Shape = Italic Serif
Foundry = Monotype
Priority = 20
end
begin /usr/share/fonts/truetype/liberation/LiberationSerif-Regular.ttf
Family = Serif
FontName = Serif-Regular
Encoding = Unicode
Location = Magyar Dutch Spanish Czech Vietnamese Russian English Catalan Slovak Italian Turkish Danish Slovenian Basque Portuguese German Polish Swedish Norwegian French Finnish Greek
Charset = ISO8859-1 ISO8859-2 ISO8859-3 ISO8859-4 ISO8859-5 ISO8859-6 ISO8859-7 ISO8859-8 ISO8859-9 ISO8859-9e ISO8859-10 ISO8859-13 ISO8859-14 ISO8859-15 KOI8-R KOI8-U CP437 CP850 CP1251 CP1255 VISCII1.1-1 TCVN-5712 TATAR-CYR ISO10646-1
UniCharset = ISO8859-1 ISO8859-2 ISO8859-3 ISO8859-4 ISO8859-5 ISO8859-6 ISO8859-7 ISO8859-8 ISO8859-9 ISO8859-9e ISO8859-10 ISO8859-13 ISO8859-14 ISO8859-15 KOI8-R KOI8-U CP437 CP850 CP1251 CP1255 VISCII1.1-1 TCVN-5712 TATAR-CYR
GeneralFamily = Roman
Weight = Medium
Width = Variable
Shape = Serif Upright
Foundry = Monotype
Priority = 20
end
begin /usr/share/fonts/truetype/liberation/LiberationSerif-Bold.ttf
Family = Serif
FontName = Serif-Bold
Encoding = Unicode
Location = Magyar Dutch Spanish Czech Vietnamese Russian English Catalan Slovak Italian Turkish Danish Slovenian Basque Portuguese German Polish Swedish Norwegian French Finnish Greek
Charset = ISO8859-1 ISO8859-2 ISO8859-3 ISO8859-4 ISO8859-5 ISO8859-6 ISO8859-7 ISO8859-8 ISO8859-9 ISO8859-9e ISO8859-10 ISO8859-13 ISO8859-14 ISO8859-15 KOI8-R KOI8-U CP437 CP850 CP1251 CP1255 VISCII1.1-1 TCVN-5712 TATAR-CYR ISO10646-1
UniCharset = ISO8859-1 ISO8859-2 ISO8859-3 ISO8859-4 ISO8859-5 ISO8859-6 ISO8859-7 ISO8859-8 ISO8859-9 ISO8859-9e ISO8859-10 ISO8859-13 ISO8859-14 ISO8859-15 KOI8-R KOI8-U CP437 CP850 CP1251 CP1255 VISCII1.1-1 TCVN-5712 TATAR-CYR
GeneralFamily = Roman
Weight = Bold
Width = Variable
Shape = Serif Upright
Foundry = Monotype
Priority = 20
end
begin /usr/share/fonts/truetype/liberation/LiberationSerif-BoldItalic.ttf
Family = Serif
FontName = Serif-BoldItalic
Encoding = Unicode
Location = Magyar Dutch Spanish Czech Vietnamese Russian English Catalan Slovak Italian Turkish Danish Slovenian Basque Portuguese German Polish Swedish Norwegian French Finnish Greek
Charset = ISO8859-1 ISO8859-2 ISO8859-3 ISO8859-4 ISO8859-5 ISO8859-7 ISO8859-8 ISO8859-9 ISO8859-9e ISO8859-10 ISO8859-13 ISO8859-14 ISO8859-15 KOI8-R KOI8-U CP437 CP850 CP1251 CP1255 VISCII1.1-1 TCVN-5712 TATAR-CYR ISO10646-1
UniCharset = ISO8859-1 ISO8859-2 ISO8859-3 ISO8859-4 ISO8859-5 ISO8859-7 ISO8859-8 ISO8859-9 ISO8859-9e ISO8859-10 ISO8859-13 ISO8859-14 ISO8859-15 KOI8-R KOI8-U CP437 CP850 CP1251 CP1255 VISCII1.1-1 TCVN-5712 TATAR-CYR
GeneralFamily = Roman
Weight = Bold
Width = Variable
Shape = Serif Italic
Foundry = Monotype
Priority = 20
end
begin /usr/share/fonts/truetype/liberation/LiberationSerif-Italic.ttf
Family = Serif
FontName = Serif-Italic
Encoding = Unicode
Location = Magyar Dutch Spanish Czech Vietnamese Russian English Catalan Slovak Italian Turkish Danish Slovenian Basque Portuguese German Polish Swedish Norwegian French Finnish Greek
Charset = ISO8859-1 ISO8859-2 ISO8859-3 ISO8859-4 ISO8859-5 ISO8859-7 ISO8859-8 ISO8859-9 ISO8859-9e ISO8859-10 ISO8859-13 ISO8859-14 ISO8859-15 KOI8-R KOI8-U CP437 CP850 CP1251 CP1255 VISCII1.1-1 TCVN-5712 TATAR-CYR ISO10646-1
UniCharset = ISO8859-1 ISO8859-2 ISO8859-3 ISO8859-4 ISO8859-5 ISO8859-7 ISO8859-8 ISO8859-9 ISO8859-9e ISO8859-10 ISO8859-13 ISO8859-14 ISO8859-15 KOI8-R KOI8-U CP437 CP850 CP1251 CP1255 VISCII1.1-1 TCVN-5712 TATAR-CYR
GeneralFamily = Roman
Weight = Medium
Width = Variable
Shape = Serif Italic
Foundry = Monotype
Priority = 20
end
Content is taken and modified from the /etc/defoma/hints/msttcorefonts.hints file.

Then register fonts with defoma:
$ sudo defoma-font -v reregister-all /etc/defoma/hints/liberation.hints

Log out and log in or reboot :)

Also check http://uwstopia.nl/blog/2007/05/free-your-fonts to see how you can fool applications into showing Liberation whenever they ask for one of the non-free Microsoft fonts.

Sunday, September 10, 2006

Ubuntu: Desktop Optimization

Optimize different GNOME applications to make it more faster and responsive.

XML Optimization is a set of method that reformat the XML metadata for use with XML stream. The process is used in websites to minimize network bandwidth consumption and increase the memory space for the applications who store them locally. XML metadata is used by modern applications like OpenOffice.org, GNOME, Evolution, Rhythmbox, GDM, etc., and is used in SVG graphic rendering. By Optimizing the XML metadata that those applications use, the application who parse them will require less memory usage, and less time parsing, thus improving speed and responsiveness.

http://www.gnomefiles.org/app.php?soft_id=1397
http://wiki.ubuntu.com/Optimization

Friday, August 18, 2006

Ubuntu: tweaking GNOME

Recently I switched to GNOME desktop environment (don't know yet for how long). In XFCE4 I liked very much xfce-smooth theme, so I installed the package gtk2-engines-xfce and its dependencies.
What I disliked in GNOME, that the icons sizes in main menu and toolbars were slightly bigger than I would like. After some googling I came up with this ~/.gtkrc-2.0 file (with some comments from me):
#gtk-icon-sizes="gtk-menu=48,48:gtk-button=48,48:gtk-small-toolbar=48,48:
gtk-large-toolbar=48,48:gtk-dnd=48,48:gtk-dialog=48,48:panel-menu=48,48"

#gtk-icon-sizes="gtk-menu=48,48" #changes icon sizes in menus: file, edit, etc.

#gtk-icon-sizes="gtk-button=48,48" #changes icon sizes on yes, no, delete, cancel,
#back, forward, etc. buttons

#gtk-icon-sizes="gtk-small-toolbar=48,48" #not sure about this

#gtk-icon-sizes="gtk-large-toolbar=48,48" #changes icon size in toolbars (don't know
#why it's 'large'). also changed gaim icon
#size in notification area (system tray)
#default size on my setup was 24,24

#gtk-icon-sizes="gtk-dnd=48,48" #don't know

#gtk-icon-sizes="gtk-dialog=48,48" #don't know

#gtk-icon-sizes="panel-menu=72,72" #changes icon size in so called 'start' menu
#(ussualy it sits in lower or upper left corner)
#default size on my setup was 24,24

gtk-icon-sizes="panel-menu=16,16:gtk-large-toolbar=20,20"

http://gnome-hacks.web.com/hacks.html?id=43
http://gnomesupport.org/forums/viewtopic.php?t=11297
http://www.ubuntuforums.org/showthread.php?t=51640

Friday, August 11, 2006

Ubuntu: keeping clean

Better Management of Packages while Uninstalling
Another tip is always to use aptitude for package installation.

Monday, July 24, 2006

Ubuntu: some tips

*.desktop files are stored in /usr/share/applications folder.
Icons are stored in /usr/share/pixmaps folder.

Adding this line MOZ_DISABLE_PANGO=1 to /etc/environment supposedly speeds up Mozilla Firefox.

Ubuntu: more speed

The prelink package contains a utility which modifies ELF shared libraries and executables, so that far fewer relocations need to be resolved at runtime and thus programs come up faster.

How to enable prelink:

1. Activate Ubuntu universe sources. The procedure is well-documented by Ubuntu
2. use apt-get or synaptic to install prelink
3. Open /etc/default/prelink with your favorite editor, as sudo/root
4. Change PRELINKING=unknown from unknown to yes
5. Adjust the other options if you know what the heck you're doing. Defaults work well
6. To start the first prelink (the longest one!), run sudo /etc/cron.daily/prelink

Sunday, July 23, 2006

Ubuntu: w32codecs installation

First download w32codecs package from here or here. Then:
$ sudo dpkg -i package.name.deb

http://help.ubuntu.com/community/RestrictedFormats

Ubuntu: my NTFS mount point

My NTFS mount point in /etc/fstab:
/dev/hda1 /media/hda1 ntfs defaults,nls=utf8,umask=007,gid=46 0 1

Saturday, July 22, 2006

Ubuntu: set correct DPI for X server

You can use utilities xdpyinfo | grep resolution and xrdb -query to get current DPI value. To change DPI values create a file ~/.Xresources or edit ~/.config/xfce4/Xft.xrdb (if using XFCE4) and add line:
Xft.dpi: 96
Or you can edit directly /etc/X11/xorg.conf and under "Monitor" section add a line:
DisplaySize XXX XXX (in my case it's 270 203)
XXX is calculated by using formula 25.4 * pixels (height or width) / DPI.

Note: X Window System has it's own DPI value set in /etc/X11/xorg.conf; desktop environment, for example XFCE4 - in ~/.config/xfce4/Xft.xrdb; Mozilla Firefox - in browser.display.screen_resolution (about:config).

UPDATE: There's a bug in Ubuntu 7.04 Feisty Fawn in xorg module, so that xorg doesn't honor DisplaySize line in xorg.conf.

Ubuntu: generate program menus

generates programs menu for all menu-aware applications
Debian menu keeps transparently the menus in the different
window-managers in sync with the list of installed programs.

Debian menu relies on a list of menu entries provided by programs
and a list of menu-methods provided by window-managers and other
menu-aware applications.

Menu provides system-level and user-level configuration and overrides
for both menu entries and menu-methods.
$ sudo apt-get install menu
$ sudo apt-get install menu-xdg #not sure about this
$ sudo update-menus

Ubuntu: Flash player plugin install

It's very easy to install Flash player in Ubuntu Linux. Just execute following commands in terminal:
$ sudo apt-get install flashplugin-nonfree
$ sudo update-flashplugin

Ubuntu: MS TrueType font install

At first add keyword multiverse to repositories list in /etc/apt/sources.list. Then download Tahoma font and execute:
$ sudo apt-get install msttcorefonts
$ cabextract IELPKTH.CAB
$ sudo cp *.ttf /usr/share/fonts/truetype/msttcorefonts/

Edit /etc/defoma/hints/msttcorefonts.hints file (as root) and append the following lines:
begin /usr/share/fonts/truetype/msttcorefonts/tahoma.ttf
Family = Tahoma
FontName = Tahoma-Regular
Encoding = Unicode
Location = Magyar Dutch Spanish Czech Russian English Catalan Slovak Italian Turkish Danish Slovenian Basque Portuguese German Polish Swedish Norwegian French Finnish Greek
Charset = ISO8859-1 ISO8859-2 ISO8859-3 ISO8859-4 ISO8859-5 ISO8859-7 ISO8859-9 ISO8859-10 ISO8859-13 ISO8859-14 ISO8859-15 KOI8-R KOI8-U CP1251 VISCII1.1-1 TCVN-5712 ISO10646-1
UniCharset = ISO8859-1 ISO8859-2 ISO8859-3 ISO8859-4 ISO8859-5 ISO8859-7 ISO8859-9 ISO8859-10 ISO8859-13 ISO8859-14 ISO8859-15 KOI8-R KOI8-U CP1251 VISCII1.1-1 TCVN-5712
GeneralFamily = SansSerif
Weight = Medium
Width = Variable
Shape = NoSerif Upright
Foundry = Microsoft
Priority = 20
end
begin /usr/share/fonts/truetype/msttcorefonts/tahomabd.ttf
Family = Tahoma
FontName = Tahoma-Bold
Encoding = Unicode
Location = Magyar Dutch Spanish Czech Russian English Catalan Slovak Italian Turkish Danish Slovenian Basque Portuguese German Polish Swedish Norwegian French Finnish Greek
Charset = ISO8859-1 ISO8859-2 ISO8859-3 ISO8859-4 ISO8859-5 ISO8859-7 ISO8859-9 ISO8859-10 ISO8859-13 ISO8859-14 ISO8859-15 KOI8-R KOI8-U CP1251 VISCII1.1-1 TCVN-5712 ISO10646-1
UniCharset = ISO8859-1 ISO8859-2 ISO8859-3 ISO8859-4 ISO8859-5 ISO8859-7 ISO8859-9 ISO8859-10 ISO8859-13 ISO8859-14 ISO8859-15 KOI8-R KOI8-U CP1251 VISCII1.1-1 TCVN-5712
GeneralFamily = SansSerif
Weight = Bold
Width = Variable
Shape = NoSerif Upright
Foundry = Microsoft
Priority = 20
end
Actually these lines are taken from Arial font description and modified to Tahoma.

Then execute:
$ sudo defoma-font -v reregister-all /etc/defoma/hints/msttcorefonts.hints

Add the line bellow to /etc/X11/xorg.conf file:
FontPath "/usr/share/fonts/truetype/msttcorefonts"


May be helpful (may be not):
$ sudo dpkg-reconfigure defoma
$ sudo defoma-reconfigure
$ sudo fc-cache -f -v