Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old July 3rd, 2006   #1
calande
Gee! These Aren't Roasted!
 
calande's Avatar
 
Join Date: Mar 2006
Beans: 164
Arrow Display Microsoft fonts like on Windows

This tutorial now has a web site: http://www.sharpfonts.com/

I tweaked the fontconfig XML files so that fonts look like on Windows. This code is borrowed from PC-BSD. First, let's install the Microsoft fonts. You have 2 ways of doing so:

Either download the fonts into your home directory and install them on your system:

Code:
sudo tar xvjpf msfonts.tbz -C /usr/share/fonts/truetype/
Or, enable non-free, universe and multiverse repositories and install the Microsoft fonts:

Code:
sudo apt-get install msttcorefonts
You now have the Microsoft fonts installed. Let's configure your system now.

Download the xml files and extract the file into /etc/fonts/ as root:

Code:
sudo tar xvjpf fontconfig.tbz -C /etc/fonts/
Log out from Ubuntu and relog in. Here's how your desktop will look like:



It's a lot more complex than disabling antialiasing at small font sizes

DIGG IT!
__________________
Charles.

Last edited by calande; October 31st, 2007 at 07:03 PM..
calande is offline   Reply With Quote
Old July 4th, 2006   #2
tep200377
5 Cups of Ubuntu
 
tep200377's Avatar
 
Join Date: Jul 2006
Location: Horten, Norway
Beans: 22
Ubuntu 9.10 Karmic Koala
Send a message via MSN to tep200377
Re: Display Microsoft fonts like on Windows

APt get didnt find the package ?!
tep200377 is offline   Reply With Quote
Old July 4th, 2006   #3
DC@DR
Way Too Much Ubuntu
 
DC@DR's Avatar
 
Join Date: Jun 2006
Location: /Earth/Asia/Vietnam
Beans: 211
Ubuntu 8.04 Hardy Heron
Re: Display Microsoft fonts like on Windows

That works perfectly nice, dude, thanks a lot
DC@DR is offline   Reply With Quote
Old July 4th, 2006   #4
tep200377
5 Cups of Ubuntu
 
tep200377's Avatar
 
Join Date: Jul 2006
Location: Horten, Norway
Beans: 22
Ubuntu 9.10 Karmic Koala
Send a message via MSN to tep200377
Re: Display Microsoft fonts like on Windows

brp@brp-laptop:~$ sudo apt-get install msttcorefonts
Reading package lists... Done
Building dependency tree... Done
Package msttcorefonts is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package msttcorefonts has no installation candidate


tep200377 is offline   Reply With Quote
Old July 4th, 2006   #5
newbie2
Quad Shot of Ubuntu
 
newbie2's Avatar
 
Join Date: May 2005
Beans: 415
Re: Display Microsoft fonts like on Windows

Quote:
Originally Posted by tep200377
brp@brp-laptop:~$ sudo apt-get install msttcorefonts
Reading package lists... Done
Building dependency tree... Done
Package msttcorefonts is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package msttcorefonts has no installation candidate


yep...that's also what i get
newbie2 is offline   Reply With Quote
Old July 4th, 2006   #6
digby
Way Too Much Ubuntu
 
digby's Avatar
 
Join Date: Mar 2005
Location: Memphis, TN
Beans: 248
Ubuntu 9.04 Jaunty Jackalope
Send a message via AIM to digby
Re: Display Microsoft fonts like on Windows

Quote:
Originally Posted by tep200377
APt get didnt find the package ?!
You have to enable the extra apt repositories first. From the OP:
Quote:
Enable non-free, universe and multiverse repositories.
Make sure your /etc/apt/sources.list has these lines.

deb http://us.archive.ubuntu.com/ubuntu/ dapper universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ dapper universe multiverse

deb http://security.ubuntu.com/ubuntu dapper-security universe multiverse
deb-src http://security.ubuntu.com/ubuntu dapper-security universe multiverse

If you find them and they have a '#' in front, you have to remove that. Then run
Code:
sudo apt-get update
Then you should be able to install the font package.

Edit: If you don't know how to edit your sources.list file, see here.

Last edited by digby; July 4th, 2006 at 11:07 AM..
digby is offline   Reply With Quote
Old July 4th, 2006   #7
petervk
A Carafe of Ubuntu
 
Join Date: Oct 2005
Location: Burlington, ON, Canada
Beans: 107
Ubuntu 8.10 Intrepid Ibex
Re: Display Microsoft fonts like on Windows

Do you have the universe and multiverse repo's enabled? Because that would give you a similar error. Try to enable the universe and multiverse and try that command again.
__________________
Peter **
petervk is offline   Reply With Quote
Old July 4th, 2006   #8
tep200377
5 Cups of Ubuntu
 
tep200377's Avatar
 
Join Date: Jul 2006
Location: Horten, Norway
Beans: 22
Ubuntu 9.10 Karmic Koala
Send a message via MSN to tep200377
Re: Display Microsoft fonts like on Windows

I gotta say, I really love it when people help me out

Im a newbie on ubuntu. I've tried slackware and other distroes before, but ubuntu really made me make the switch ..

tep200377 is offline   Reply With Quote
Old July 4th, 2006   #9
newbie2
Quad Shot of Ubuntu
 
newbie2's Avatar
 
Join Date: May 2005
Beans: 415
Re: Display Microsoft fonts like on Windows

Quote:
Originally Posted by digby
You have to enable the extra apt repositories first. From the OP:Make sure your /etc/apt/sources.list has these lines.

deb http://us.archive.ubuntu.com/ubuntu/ dapper universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ dapper universe multiverse

deb http://security.ubuntu.com/ubuntu dapper-security universe multiverse
deb-src http://security.ubuntu.com/ubuntu dapper-security universe multiverse

If you find them and they have a '#' in front, you have to remove that. Then run
Code:
sudo apt-get update
Then you should be able to install the font package.

Edit: If you don't know how to edit your sources.list file, see here.
i use dapper kubuntu and it works now ...thanx very much....
newbie2 is offline   Reply With Quote
Old July 4th, 2006   #10
lepre
Just Give Me the Beans!
 
lepre's Avatar
 
Join Date: Jun 2006
Location: brescia, Italy
My beans are hidden!
Xubuntu 6.06
Send a message via MSN to lepre
Re: Display Microsoft fonts like on Windows

half-working for me, maybe it's because i did an other fix and them don't fit togheter?
__________________
xubuntu 6.06 - finally adapted!
trying to develop under linux (knows c/c++/java/others from windows...starting with Ruby too for web)
i need some help to start with gtkmm and autoconf/make
the ducks'
lepre is offline   Reply With Quote

Bookmarks

Tags
solved

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:37 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry