Sunday, June 22, 2008

Back to Ubuntu - SegoeUI on Ubuntu 8.04 LTS

Well now i am back to Ubuntu .. due to a couple of issues, and the most prominent being that vista freezes my touchpad, after it comes back from sleep (suspend) and sometimes it comes back in 3-5 seconds , sometimes a min, and sometimes it doesnt come even after 10 mins. I usually connect my wireless mouse if that happens, but this is irritating. Also had a few firefox crashes.

Now after being in vista for sometime, i somehow started liking SegoeUI. Its a good font. I have brought that into Ubuntu so now system has Segoe UI. Its a very simple process for those who wish to do the same (It might not be legal though , but since i bought vista, i think i should have the right to copy it to my own system). Its pretty similar to the way Tahoma etc are copied. There is a good document at http://www.howtoforge.com/sharp_fonts_gnome_p2 which gives the general idea. Actually i like smaller screens so i live is 72 - 80 DPI range, since for me 96 DPI seems too big and dialogs etc tend to be too huge.

Here is specific for Segoe.

1. Copy the four font files (segoeuib.ttf segoeuii.ttf segoeui.ttf segoeuiz.ttf) from c:\windows\fonts to /usr/share/fonts/truetype/custom (you need to sudo for this or open nautilus as root, if "custom" folder is not there create it).

$ cd /usr/share/fonts/truetype/custom
$ sudo nautlius .


2. Now once thats done, we need to modify a file custom.hints

$ sudo gedit /etc/defoma/hints/custom.hints


3. Put this in the file (if it already exists, append to it)
--------
begin /usr/share/fonts/truetype/custom/segoeui.ttf
Family = Segoeui
FontName = Segoeui-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/custom/segoeuib.ttf
Family = Segoeui
FontName = Segoeui-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
begin /usr/share/fonts/truetype/custom/segoeuii.ttf
Family = Segoeui
FontName = Segoeui-Italic
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 Italic
Foundry = Microsoft
Priority = 20
end
begin /usr/share/fonts/truetype/custom/segoeuiz.ttf
Family = Segoeui
FontName = Segoeui-Italic-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 Italic
Foundry = Microsoft
Priority = 20
end

--------

4. Now do this to complete the process .. this will register and refresh font cache, without this step you will not see it in fonts list.

sudo /usr/bin/defoma-font -v register-all /etc/defoma/hints/custom.hints
sudo dpkg-reconfigure fontconfig


Thats it ... you are all set, now make sure you turn on the anti alisaing and hinting .. (as shown in the link http://www.howtoforge.com/sharp_fonts_gnome_p2 )

Happy good looking fonts :) , since fonts influence you a lot, especially if you are used to some font, it will take time to get used to another font, so why not take the font with you whereever you go, on whatever machine you are in .. though i am not sure if copyrights prevent that, so take your own risk, or atleast have a legal vista version)

No comments: