PDA

View Full Version : Display Microsoft fonts like on Windows



Pages : [1] 2

calande
July 3rd, 2006, 07:33 PM
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 (http://www.pcbsd.org). First, let's install the Microsoft fonts. You have 2 ways of doing so:

Either download the fonts (http://www.osresources.com/files/centos-windows-fonts/msfonts.tbz) into your home directory and install them on your system:


sudo tar xvjpf msfonts.tbz -C /usr/share/fonts/truetype/

Or, enable non-free, universe and multiverse repositories and install the Microsoft fonts:


sudo apt-get install msttcorefonts

You now have the Microsoft fonts installed. Let's configure your system now.

Download the xml files (http://www.osresources.com/files/centos-windows-fonts/fontconfig.tbz) and extract the file into /etc/fonts/ as root:


sudo tar xvjpf fontconfig.tbz -C /etc/fonts/

Log out from Ubuntu and relog in. Here's how your desktop will look like:

http://img412.imageshack.us/img412/6972/ubuntu5ui.th.png (http://img412.imageshack.us/img412/6972/ubuntu5ui.png)

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

DIGG IT! (http://digg.com/linux_unix/Display_Microsoft_fonts_in_Unix_like_on_Windows)

tep200377
July 4th, 2006, 02:25 PM
APt get didnt find the package ?! [-(

DC@DR
July 4th, 2006, 02:39 PM
That works perfectly nice, dude, thanks a lot :)

tep200377
July 4th, 2006, 03:33 PM
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


:p

newbie2
July 4th, 2006, 03:46 PM
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


:p

yep...that's also what i get :-?

digby
July 4th, 2006, 04:04 PM
APt get didnt find the package ?!
You have to enable the extra apt repositories first. From the OP:
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
sudo apt-get updateThen you should be able to install the font package.

Edit: If you don't know how to edit your sources.list file, see here. (http://ubuntuguide.org/wiki/Dapper#How_to_add_extra_repositories)

petervk
July 4th, 2006, 04:05 PM
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.

tep200377
July 4th, 2006, 04:08 PM
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 ..

\\:D/

newbie2
July 4th, 2006, 04:41 PM
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
sudo apt-get updateThen you should be able to install the font package.

Edit: If you don't know how to edit your sources.list file, see here. (http://ubuntuguide.org/wiki/Dapper#How_to_add_extra_repositories)

i use dapper kubuntu and it works now ...thanx very much....

lepre
July 4th, 2006, 09:45 PM
half-working for me, maybe it's because i did an other fix and them don't fit togheter?

Hairy_Palms
July 4th, 2006, 10:04 PM
nice howto, definately changes the font, im just confused though lol i genuinely cant decide if i like it better before or after :D

madscience
July 5th, 2006, 03:11 AM
I think I liked it better before, on my laptop's LCD... could someone give me a hand to revert to the original config files... (ie post their's)?

Thanks.

barbarian
July 5th, 2006, 09:45 AM
Thanx for configs. Tried with Kubuntu 6.06 Desktop(Live) CD on laptop - worked perfectly.

calande
July 5th, 2006, 11:35 AM
To revert, erase the file local.conf

calande
July 5th, 2006, 06:59 PM
Firefox is the only application that doesn't take this configuration into account, and uses antialiasing for all fonts at any size. Does some one know how to solve this problem? I tried this setting in the about:config options:


font.antialias.min = 20

Which had no effect... Any idea?
Thanks,

eradicator_006
July 10th, 2006, 04:41 AM
Firefox is the only application that doesn't take this configuration into account, and uses antialiasing for all fonts at any size. Does some one know how to solve this problem? I tried this setting in the about:config options:


font.antialias.min = 20

Which had no effect... Any idea?
Thanks,
yeah same problem here. openoffice.org is also ignoring these customizations. i dont use OO much so I can live with that. i do use firefox regularly and would really like to fix the fonts there.

Psquared
July 10th, 2006, 04:50 AM
Hmmm.... in Dapper I don't have a /etc/fonts folder. Should I create one?

crazygamer
July 10th, 2006, 09:29 AM
yeah same problem here. openoffice.org is also ignoring these customizations. i dont use OO much so I can live with that. i do use firefox regularly and would really like to fix the fonts there.

Yeah, any help on "fixing" Firefox would be great! I also noticed that Yelp (if you go to System -> About Ubuntu) also anti-aliases that help despite AA being off in my Fonts prefs.

eradicator_006
July 10th, 2006, 05:17 PM
Yeah, any help on "fixing" Firefox would be great! I also noticed that Yelp (if you go to System -> About Ubuntu) also anti-aliases that help despite AA being off in my Fonts prefs.
I have the same thing in yelp. There is one difference between what's happening in yelp and what's happening in firefox....the menu (ie file, edit,etc) is anti-aliased and the menu in yelp is not anti-aliased. I use thunderbird for email and newsgroups and everything looks great with that program.

calande
July 10th, 2006, 05:28 PM
Is there a bug tracker or wishlist at Ubuntu?

desperado666
July 11th, 2006, 03:28 AM
Now i need a Howto render fonts like a MAC

calande
July 11th, 2006, 02:32 PM
Ok, I finally found a solution. I updated my XML files, please go ahead and follow the original tutorial (http://ubuntuforums.org/showthread.php?t=208396) again. Now fonts in Firefox are going to look good, just like in Windows :)

Original thread:
http://forums.pcbsd.org/viewtopic.php?p=25646

barbarian
July 11th, 2006, 02:56 PM
cool, thanks, it worked:)

memos
July 11th, 2006, 04:15 PM
Hi guys i take this error
Extraction not performed

You don't have the right permissions to extract archives in the folder "/etc/fonts".Why?I do not have other user.

calande
July 11th, 2006, 04:23 PM
Nope, you need root privilege. Here's how you would do:

sudo tar -xvjpf nicefonts.tbz /etc/fonts/
And type your root password when requested ;)

memos
July 11th, 2006, 04:44 PM
Now i take this
tar: nicefonts.tbz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: /etc/fonts: Not found in archive
tar: Error exit delayed from previous errors

calande
July 11th, 2006, 04:47 PM
Ok, where did you put your "nicefonts.tbz" file? I'll assume you stored in your Desktop. If so, here's what you're gonna do instead:


cd ~/Desktop
sudo tar -xvjpf nicefonts.tbz /etc/fonts/

memos
July 11th, 2006, 05:01 PM
In my desktop yes but error again
tar: /etc/fonts: Not found in archive
tar: Error exit delayed from previous errors

eradicator_006
July 11th, 2006, 05:26 PM
Works perfect now! How did you fix it? I spent several hours trying to make firefox look "good" and got nowhere.

crazygamer
July 11th, 2006, 05:53 PM
I also fixed mine. Before I had my font config files in /etc/fonts which worked for the rest of the system but not firefox or yelp. I copied them to ~/.fonts and that fixed those 2 programs as well.

calande
July 12th, 2006, 12:47 AM
In my desktop yes but error again
Well, you'll have to find a way to extract this file into your /etc/fonts/ directory as root...

I don't know how to help at this point :(

calande
July 12th, 2006, 02:10 AM
Oops! The code is actually:
sudo tar -xvjpf nicefonts.tbz -C /etc/fonts/

Sorry!

Mr_HeNtAi
July 12th, 2006, 02:12 AM
Great information! Thanks for the post.

memos
July 12th, 2006, 08:42 AM
Done.I fix with

cd ~/Desktop
and then

sudo tar -xvjpf nicefonts.tbz -C /etc/fonts/
Thaks man =D> =D> =D>

PingunZ
July 12th, 2006, 11:07 AM
Great guide easy to follow, clearly and a lil bit of explanation ;)

TY :KS

edit :: how can I undo this ??? I really don't like these fonts :p



Grtz PingunZ

Urmas
July 12th, 2006, 11:14 AM
Great! Thanks!

\\:D/ \\:D/ \\:D/

PingunZ
July 12th, 2006, 11:26 AM
Is it normal that some apps like gedit etc dont work anymore and that the update manager really looks ugly ?

Plz tell me how to undo this ... :p

Grtz PingunZ

calande
July 12th, 2006, 11:46 AM
Sure, if you run into problems or if it doesn't look like the screenshots, just remove /etc/fonts/local.conf and uninstall the Microsoft Fonts ;)

MellonCollie
July 12th, 2006, 01:39 PM
Nice, thanks!

afterxleep
July 12th, 2006, 10:18 PM
To solve the issue in OpenOffice, just go to Tools > Options and untick the Antialias check box. Or even better, set it to antialias small fonts, like 12px or less.

BIGtrouble77
July 13th, 2006, 04:02 AM
This font config is most excellent. Thanks calande, you did a phenominal job.

harissza
July 13th, 2006, 09:01 AM
Hi All,

I applied these new updates now:

[UPGRADE] gimp 2.2.11-1ubuntu3 -> 2.2.11-1ubuntu3.1
[UPGRADE] gimp-data 2.2.11-1ubuntu3 -> 2.2.11-1ubuntu3.1
[UPGRADE] gimp-python 2.2.11-1ubuntu3 -> 2.2.11-1ubuntu3.1
[UPGRADE] libgimp2.0 2.2.11-1ubuntu3 -> 2.2.11-1ubuntu3.1
[UPGRADE] libsmbclient 3.0.22-1ubuntu3 -> 3.0.22-1ubuntu3.1
[UPGRADE] libxine-main1 1.1.1+ubuntu2-7.1 -> 1.1.1+ubuntu2-7.2
[UPGRADE] linux-kernel-devel 2.6.15-25.43 -> 2.6.15-26.44
[UPGRADE] linux-restricted-modules-common 2.6.15.11-2 -> 2.6.15.11-3
[UPGRADE] login 1:4.0.13-7ubuntu3.1 -> 1:4.0.13-7ubuntu3.2
[UPGRADE] openoffice.org 2.0.2-2ubuntu12 -> 2.0.2-2ubuntu12.1
[UPGRADE] openoffice.org-base 2.0.2-2ubuntu12 -> 2.0.2-2ubuntu12.1
[UPGRADE] openoffice.org-calc 2.0.2-2ubuntu12 -> 2.0.2-2ubuntu12.1
[UPGRADE] openoffice.org-common 2.0.2-2ubuntu12 -> 2.0.2-2ubuntu12.1
[UPGRADE] openoffice.org-core 2.0.2-2ubuntu12 -> 2.0.2-2ubuntu12.1
[UPGRADE] openoffice.org-draw 2.0.2-2ubuntu12 -> 2.0.2-2ubuntu12.1
[UPGRADE] openoffice.org-evolution 2.0.2-2ubuntu12 -> 2.0.2-2ubuntu12.1
[UPGRADE] openoffice.org-gnome 2.0.2-2ubuntu12 -> 2.0.2-2ubuntu12.1
[UPGRADE] openoffice.org-gtk 2.0.2-2ubuntu12 -> 2.0.2-2ubuntu12.1
[UPGRADE] openoffice.org-impress 2.0.2-2ubuntu12 -> 2.0.2-2ubuntu12.1
[UPGRADE] openoffice.org-java-common 2.0.2-2ubuntu12 -> 2.0.2-2ubuntu12.1
[UPGRADE] openoffice.org-l10n-en-us 2.0.2-2ubuntu12 -> 2.0.2-2ubuntu12.1
[UPGRADE] openoffice.org-math 2.0.2-2ubuntu12 -> 2.0.2-2ubuntu12.1
[UPGRADE] openoffice.org-writer 2.0.2-2ubuntu12 -> 2.0.2-2ubuntu12.1
[UPGRADE] passwd 1:4.0.13-7ubuntu3.1 -> 1:4.0.13-7ubuntu3.2
[UPGRADE] python-uno 2.0.2-2ubuntu12 -> 2.0.2-2ubuntu12.1
[UPGRADE] samba-common 3.0.22-1ubuntu3 -> 3.0.22-1ubuntu3.1
[UPGRADE] smbclient 3.0.22-1ubuntu3 -> 3.0.22-1ubuntu3.1
[UPGRADE] ttf-opensymbol 2.0.2-2ubuntu12 -> 2.0.2-2ubuntu12.1

Nothing I can see relating to fonts BUT everything has gone worse. I can copy the original fonts folder back but I get only the ugly default fonts back. I want these nice ones back again! Any idea? It was fabulous for a week on my dapper...

Thanx

Adam

gabrieliscool
July 16th, 2006, 07:22 AM
This Doesn't work with the Suse Linux Enterprise Desktop (SLED) Menu.
I Tried It And I Had Bad Font Problems.

BTW, If You Want To Install the SLED Menu, go to
http://angelicpenguins.blogspot.com/2006/07/sled-menu-for-ubuntu-uslab-now-in-repo_14.html

calande
July 16th, 2006, 05:01 PM
I just updated the files, now very tiny bold Arial and Verdana fonts are aliased for better readability :)

As far as SLED, I have no idea, if some one uses it and has a fix, you're mostly welcome ;)

TheMono
July 18th, 2006, 05:25 AM
This seems to have caused quite an issue - it's hard to explain this, but now my computer is rendering only the left hand side of each line, until I select it, and upon selection, it fixes itself.

For example, if I bring up a menu, go to the "sound and video" section, I can see "GXine" in the menu. If I then run my mouse over that (ie, without clicking, just making the background go dark - what do you call doing that lol), it changes then to "GXine Movie Player" - ie, it renders the full string of text.

Ideas? I do much prefer the fonts like this and I'd like to keep it if I can get rid of this problem.

Oh, and also, it happens in almost everything - the GKSudo dialogbox, in Evolution, etc.

rniella
July 19th, 2006, 11:49 PM
This is great !!! I`ve been messing around with the fonts for a while now since I had the k, x issue and found a liiitle bit of improvement installing windows fonts and adjusting the anti-alias, but your How-to was a great improvement for me, many thanks !!!

RN

calande
July 20th, 2006, 02:08 AM
You welcome! I think it should be integrated into default installation :)

LamB
July 20th, 2006, 04:08 PM
Thanks a lot!!! this REALLY improves font display...:D

BanskuZ
July 20th, 2006, 04:31 PM
Nice HOWTO. But I have "little" problem with firefox:

http://img232.imageshack.us/img232/3152/fontsdl8.th.png (http://img232.imageshack.us/my.php?image=fontsdl8.png)

calande
July 20th, 2006, 04:54 PM
Ok, I think I know what the problem is. Go to your Firefox font configuration and select generic family fonts, for monospace you will select "Monospace" instead of what there is currently.

BanskuZ
July 20th, 2006, 05:05 PM
Ok, I think I know what the problem is. Go to your Firefox font configuration and select generic family fonts, for monospace you will select "Monospace" instead of what there is currently.

Thanks. :)

Burgresso
July 21st, 2006, 03:04 AM
Got halfway through, then I noticed the site holding the XML files is down...hope its ups soon, but here's a tentative thanks!

Spellweaver
July 21st, 2006, 11:23 AM
Yes, the with the xml files is stil down. I'm glad I'm not the only one with this problem :rolleyes:

Burgresso
July 21st, 2006, 05:02 PM
Cool! it's back as I post this. I'll have to try this later, but at least I was able to snag the XML file.

Burgresso
July 21st, 2006, 11:17 PM
Awesome! Thank you very much - looks great and reduces eye strain!!!

Any advice on how to customize the output - for example, changing the size at which font is aliased?

fatsheep
July 22nd, 2006, 04:16 AM
I've installed the microsoft core fonts and they display just like they do in Windows already. What do these XML files do?

Burgresso
July 22nd, 2006, 04:28 AM
They make it so that smaller fonts - around 16px or so or smaller - are not aliased, but bigger fonts are.

fatsheep
July 22nd, 2006, 06:43 AM
Wow you're right fonts look much nicer now. :p Very nice How To!

yopnono
July 22nd, 2006, 09:38 AM
Hi. Nice work. But.. I have notice that the ARIAL BOLD looks better if you change this from 11px to 14px. Since the BOLD looks blurry when they are less then 14px. Or it could be just me.

<!-- Arial bold not italic less than 14px has antialias off -->

<match target="font" >
<test name="family" >
<string>Arial</string>
</test>
<test compare="more" name="weight" >
<int>100</int>
</test>
<test compare="eq" target="pattern" name="slant" >
<const>roman</const>
</test>
<test compare="less" name="size" qual="any" >
<double>14</double>
</test>
<edit mode="assign" name="antialias" >
<bool>false</bool>
</edit>
</match>

<match target="font" >
<test name="family" >
<string>Arial</string>
</test>
<test compare="more" name="weight" >
<int>100</int>
</test>
<test compare="eq" target="pattern" name="slant" >
<const>roman</const>
</test>
<test compare="less" name="pixelsize" qual="any" >
<double>14</double>
</test>
<edit mode="assign" name="antialias" >
<bool>false</bool>
</edit>
</match>

Burgresso
July 22nd, 2006, 06:27 PM
yopnono,

what file are you editing?

yopnono
July 22nd, 2006, 06:46 PM
/etc/fonts/msfonts-rules.conf

mario8723
July 23rd, 2006, 02:41 AM
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 ..

\\:D/
I couldn't agree with you more!

These fonts look AWESOME. Thanks so much for this tutorial. These forums and community are the biggest reasons I chose and stuck with Ubuntu for my distro!

calande
July 23rd, 2006, 03:14 AM
That's true. I won't bash any other Linux distro, most of them are elitist. Ubuntu is human and focused at helping other human beings, whoever they are.

SuperMike
July 23rd, 2006, 03:23 AM
Actually, not to be to contra here, but I find the Bitstream Vera fonts display so much smoother than the Microsoft fonts. The MS fonts don't look too much different than them -- the MS fonts look less anti-aliased.

I, at one time, thought this would be the way to go, but when I installed it, I wanted to go back to the way the system comes by default.

calande
July 23rd, 2006, 03:29 AM
I am also a CentOS user, and I can't stand the antialiased fonts that CentOS has, it's like default Ubuntu, it hurts my eyes, I can't concentrate on what I read. First think I do is change the fonts to have the MS fonts instead of whatever comes by default on Linux.

srunni
July 23rd, 2006, 04:08 AM
Wow.

Very nice. That's all I have to say. As much as some might hate to admit it, M$ actually did a pretty good job with the fonts, and I've been missing them. They're a lot easier on the eyes than the Ubuntu default.

Thank you very much.

Cruxic
July 25th, 2006, 04:48 AM
Wow. This is a lot nicer in my opinion. Of course, I am just now switching from Windows. Blurry and cookie crumb font rendering has been one of my frustrations with Linux in the past. Can anybody recommend some free fonts that look good on the screen without anti-aliasing? Somebody mentioned Bitstream Vera?

I tend to agree with Joel regarding anti-aliasing
http://www.joelonsoftware.com/articles/fog0000000041.html

calande
July 25th, 2006, 12:09 PM
AFAICK, only the MS fonts look good when aliased. Bitstream and DejaVu will look bad.

gmc
July 27th, 2006, 03:57 PM
You welcome! I think it should be integrated into default installation :)

This howto ROCKS Thanks calande :D ! ..and I whole heartedly agree.

G.

Burgresso
July 28th, 2006, 08:56 PM
After setting this up, I've noticed that some fonts on the system - such as arial and (times/new) roman are aliased still - any advice on making it so these are aliased too?

regards and thanks

burgresso

calande
July 28th, 2006, 09:09 PM
Yes, they are actually supposed to be aliased and hinted at small font sizes :)

Burgresso
July 29th, 2006, 01:36 AM
calande,

thanks for your response - to clarify a bit what I meant - I wasnt to clear b4:

Arial always looks good, becuase the smaller sizes are not aliased. But courier and times don't always, so I was wondering if there is a portion of the XML file of somethinng I could edit to make it not alias at around 12px or something.

again,

thanks

calande
July 29th, 2006, 02:59 AM
Hi, I see. Actually Courier and Times are always antialiased and autohinted because they don't have hints. The Microsoft fonts Courier New and Times New Roman have hints and therefore I can turn off antialising under 16px for both of them and turn on hinting, this is why they look just like on Windows.

It seems you are using Unix fonts (Courier and Times) thinking you're using the Microsoft fonts :)

shalinmangar
July 29th, 2006, 03:40 AM
Can I know if there's something special needed to be done to un-install these fonts from my system?

Burgresso
July 29th, 2006, 05:23 PM
It seems you are using Unix fonts (Courier and Times) thinking you're using the Microsoft fonts :)

Ah ha! Thanks calande -

How do I make sure I'm using the MS Fonts? I set up the XML file as instructed.

IYY
August 2nd, 2006, 04:26 AM
Very nice... I'm not sure if I like it or not, but it sure did the trick.

ounas
August 2nd, 2006, 07:39 PM
Thanks Calande

:D :)

calande
August 2nd, 2006, 11:29 PM
Ah ha! Thanks calande -

How do I make sure I'm using the MS Fonts? I set up the XML file as instructed.

You just have to use default font configuration in Gnome and Firefox: select generic font families (sans serif; serif; monospace...)

Rackerz
August 4th, 2006, 07:14 PM
Wow I can read again! Lol. Thanks a lot for this, always been trying to find a way to display fonts as they are in Windows.

Thanks!

EDIT: What are the default, 'Application Font' and 'Document Font' in Windows? Bitstream Vera Sans Roman isn't looking to sharp at the minute.

mkljun
August 6th, 2006, 11:57 PM
Now i need a Howto render fonts like a MAC

http://jaganath.wordpress.com/2006/07/16/ubuntu-install-log-6-finally-os-x-like-font-rendering-in-linux/

puelly
August 11th, 2006, 06:45 AM
i forgot to make a backup of my original /etc/fonts folder. Can someone please email it to me or tell me how it can be restored with apt. thanks.

grenadian1 at gmail dot com

dbmet
August 12th, 2006, 03:24 PM
Wow...I can read again..thanks ..

denday
August 17th, 2006, 01:08 PM
thanks, i love it. :D

Irony
August 17th, 2006, 06:31 PM
This works great - everything is clear after some fiddling with font preferences.

The trouble with some of the default Ubuntu fonts is that the anti-aliasing fools the eye into thinking it is not focussed, so the eye keeps trying to focus which is fatiguing.

eradicator_006
August 17th, 2006, 07:58 PM
Fonts don't look so good since installing today's updates. I've tried reinstalling the xml files and rebooting....that did not help.

BFGod
August 18th, 2006, 09:49 PM
Yes, same happened here after todays update. It's because libfreetype6, so I just downgoraded it and all is well again. So you just downgrade it to the version you had before, and the problem will be solved, atleast until original poster writes a fix for this (at least I hope he will).

BTW, my first post :) Hello to everyone in Ubuntu community.

calande
August 18th, 2006, 09:51 PM
Hey, please give me the detailed instructions, what to type, where to download, etc... And I'll update my original post for you guys :)

glennric
August 19th, 2006, 03:18 AM
If you delete the files:


alias.conf
freefonts-rules.conf
local.conf
misc.conf
msfonts-rules.conf

from /etc/fonts/
(i.e. the files that this howto tells you to put in)
then your fonts will look better. That is since the latest upgrade to libfreetype from the xgl and compiz repositories.

These files will most likely need to be modified to work now. It is really to bad. They made the fonts look great, right up until these updates.

marin.r
August 19th, 2006, 04:04 PM
Hi guys, I'm totally updated & followed the howto and it worked.
However, I reverted to original, as this made everything look so MS-ish I couldn't stand it.
My question is to Irony, who said that


The trouble with some of the default Ubuntu fonts is that the anti-aliasing fools the eye into thinking it is not focussed, so the eye keeps trying to focus which is fatiguing.
Are you certain that's the case ? I mean if the default is bad for the eyes in such way I really will put the windows look back, but its hard for me to believe it?

glennric
August 19th, 2006, 08:43 PM
Hi guys, I'm totally updated & followed the howto and it worked.
However, I reverted to original, as this made everything look so MS-ish I couldn't stand it.
My question is to Irony, who said that

Are you certain that's the case ? I mean if the default is bad for the eyes in such way I really will put the windows look back, but its hard for me to believe it?

If you are completely updated and using this update with actual microsoft fonts this wouldn't work for you. You would see the worst font display you have ever seen. They would not even look close to MS-ish. This howto still seems to work well with non MS fonts.

Edit: After some more testing I see that all fonts suck with this howto after all updates are applied.

TOPPEL
August 21st, 2006, 01:54 PM
i would like to restore the font rendering to ubuntu. its not looking so good for me over here.

thank you

marin.r
August 30th, 2006, 08:10 AM
If you are completely updated and using this update with actual microsoft fonts this wouldn't work for you. You would see the worst font display you have ever seen. They would not even look close to MS-ish. This howto still seems to work well with non MS fonts.

Edit: After some more testing I see that all fonts suck with this howto after all updates are applied.

I was totally updated, and maybe not using compiz etc is what's different between our setups. The fonts got 100% like in windows.

snowmann
September 13th, 2006, 07:56 PM
Hi

It looks realy great!
Only OpenOffice looks bad :( Why?

SnowMann

calande
September 13th, 2006, 09:06 PM
This tutorial is for PC-BSD, but you'll find some useful information: http://faqs.pcbsd.org/2_288_en.html

snowmann
September 14th, 2006, 05:49 PM
@calande
thank you for the link.
It's really crazy. I have deactivate "Use system fonts for user interface" and now it looks perfect :)

PS: Sorry for my english

calande
September 14th, 2006, 06:17 PM
Yes, OpenOffice.org uses its own fonts rendering engine. That's sad.

Burgresso
September 15th, 2006, 07:34 PM
Would this work on other linux distros too?

alex1973
September 16th, 2006, 05:52 PM
Looks great, except for Firefox tab fonts (unread tabs) - very blury.
I've also noticed that Google's Picasa font got blury.

calande
September 16th, 2006, 05:57 PM
Could you show us a screenshot?

lammer
September 17th, 2006, 07:15 PM
Same problem: Some fonts get blurred, and not only on firefox:

Maybe it's because I've allready changed my font config with the ubuntu font manager?

http://img434.imageshack.us/img434/8153/screenshotzj8.th.png (http://img434.imageshack.us/my.php?image=screenshotzj8.png)

calande
September 17th, 2006, 08:02 PM
Do you have a screenshot at the 1:1 scale (not resized) please?
You need to use generic font families (sans-serif, monospace, serif, cursive, etc...) and not regular font names such as Tahoma, although Microsoft fonts should look good anyway :)

lammer
September 18th, 2006, 05:31 PM
Yep! My fault, imageshack do some kind of resize, or at least I don't know how to put the original one on it. This is the screenshot again:

http://images6.theimagehosting.com/screenshot.1d8.th.png (http://server6.theimagehosting.com/image.php?img=screenshot.1d8.png)

Anyway I've followed this tutorial instead and now my fonts look pretty cool on my 19"LCD monitor:

http://jaganath.wordpress.com/2006/07/16/ubuntu-install-log-6-finally-os-x-like-font-rendering-in-linux/

This is how it looks right now. But with "the other patch":

http://images6.theimagehosting.com/screenshot2.617.th.png (http://server6.theimagehosting.com/image.php?img=screenshot2.617.png)

I think I've allready done, but in case I can help you fixin this extrange issue with some blured fonts, I'll be over here :-)

yopnono
September 19th, 2006, 07:33 AM
Yep! My fault, imageshack do some kind of resize, or at least I don't know how to put the original one on it. This is the screenshot again:

http://images6.theimagehosting.com/screenshot.1d8.th.png (http://server6.theimagehosting.com/image.php?img=screenshot.1d8.png)

Anyway I've followed this tutorial instead and now my fonts look pretty cool on my 19"LCD monitor:

http://jaganath.wordpress.com/2006/07/16/ubuntu-install-log-6-finally-os-x-like-font-rendering-in-linux/

This is how it looks right now. But with "the other patch":

http://images6.theimagehosting.com/screenshot2.617.th.png (http://server6.theimagehosting.com/image.php?img=screenshot2.617.png)

I think I've allready done, but in case I can help you fixin this extrange issue with some blured fonts, I'll be over here :-)

Try to use SANS instead of tahoma and the font fix in this thread.

lammer
September 20th, 2006, 04:28 PM
Try to use SANS instead of tahoma and the font fix in this thread.
So you think it's better this fix than the other one. I will give a try in this case. You said Sans instead of tahoma... I wonder why, but I'll try with sans anyway.

I'll check in the next days the two "fixes", and try to post a screenshot of each one. Cheers!!

yopnono
September 20th, 2006, 04:39 PM
So you think it's better this fix than the other one. I will give a try in this case. You said Sans instead of tahoma... I wonder why, but I'll try with sans anyway.

I'll check in the next days the two "fixes", and try to post a screenshot of each one. Cheers!!

Well I prefer this fix and Sans = Clear sharp fonts.

But it could have something to do with your theme for firefox.

see my img, it's sans and this fix, and some small modifications.

alex1973
September 21st, 2006, 08:59 PM
Sorry for delay.

Here's the snapshot: http://images6.theimagehosting.com/blury-italic.th.png (http://server6.theimagehosting.com/image.php?img=blury-italic.png)

But, I have realized that this is happening when Firefox is set to use italic for unread tab (TabMix Plus -> Display -> Tab -> Customize Style -> Unread tabs -> Italic).

I've also noticed the blurry text on Picasa running on Windows also.

TigPT
October 17th, 2006, 01:16 PM
sory for open your post again, but i made your tuturial, and i have to say tha is very cool, and not only easy and fast to do, it works fine and gives beter X11 aspect.

But, i got some trobles in gDesklets leters after aply it, and maybe you can help me fix it..

thks for all,
TigPT

Newur
October 28th, 2006, 06:48 PM
Hi,

I installed your files and it almost worked very great. But last time I recognized some website fonts looking very terribly. After some testings i found out, that the bugs disappear, when I remove your files.

For example check out this page:

http://animeboard.at/index.php

Bug is tested on 2 PCs, using Dapper Drake and Edgy, with Firefox 1.5 and Firefox 2.0


Greetings
Newur

calande
October 28th, 2006, 06:54 PM
If you use Firefox, you need to define a minimum font size (ie: 10px). Works great in Opera.

Newur
October 28th, 2006, 07:45 PM
Ya, in Opera it looks great, that's right.

But changing/defining a minimum font size in Firefox didn't fix the problem. :(

turbojugend_gr
November 21st, 2006, 12:50 AM
I also prefer mac fonts, and some Linux fonts, definately not MS ones, they are so ugly, well rendered but still so far from spontaneous...

FreeSerif is the Best font ever, no wonder all movie subtitles use it.

calande
November 21st, 2006, 01:45 AM
They look good, but not as good as the MS fonts at small sizes.

giruzz
November 21st, 2006, 11:39 AM
Done but got this error at the end...

comic32.exe: No such file or directory

All done, errors in processing 1 file(s)
dpkg: error processing msttcorefonts (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
msttcorefonts

[MArCoZ]
November 21st, 2006, 08:31 PM
Hi all, Im new on this forum!

Calande, I've followed your guide on my edgy, but after login/logout nothing changes.
Is there something else to do, to get my fonts as in your image?

Thanks and best regards to all members!

yopnono
November 30th, 2006, 01:32 PM
Hi,

I installed your files and it almost worked very great. But last time I recognized some website fonts looking very terribly. After some testings i found out, that the bugs disappear, when I remove your files.

For example check out this page:

http://animeboard.at/index.php

Bug is tested on 2 PCs, using Dapper Drake and Edgy, with Firefox 1.5 and Firefox 2.0


Greetings
Newur

It's something in the misc.conf in /etc/fonts/ Just rename it, and you will be fine. I will check why it's like that.

yopnono
November 30th, 2006, 01:44 PM
Ok I did change the misc.conf and attached the file.
Change:

<int>100</int>
to

<int>10</int>



<!-- Fixed spacing for monospace -->

<match target="pattern" name="family" >
<test name="family" qual="any" >
<string>monospace</string>
</test>
<edit mode="assign" name="spacing" >
<int>10</int>
</edit>
</match>

Test against this page if you like. before and after
http://www.datanom.net/tptest-gui/about.html

calande
November 30th, 2006, 03:52 PM
Nice! Thanks for this fix! I updated the downloadable files on my server, when people download these new files, the above page should look good now!

mthakur2006
December 1st, 2006, 07:29 PM
Thanks, dat was nice! :D

bodhi.zazen
December 2nd, 2006, 06:29 AM
Nice How-to



This thread has been added to the UDSF wiki.



bodhi.zazen

yopnono
December 9th, 2006, 11:23 PM
@calande
You say that the fonts should go in to

/usr/X11R6/lib/X11/fonts/TTF/
But the fonts are normally in

/usr/share/fonts/truetype
But I guess it doesn't make any different s

emergence
December 11th, 2006, 10:21 PM
After installing windows fonts and the scripts you provided, the fonts in Ubuntu are exactly like Windows fonts without cleartype(very crisp). Is there a font smoothing algorithm for Ubuntu (or Linux in general) that is similar to cleartype? The font smoothing and hinting options for Ubuntu for don't work all that well... they're not as crisp and smooth as Windows fonts with cleartype.

ajm2005
December 12th, 2006, 06:50 PM
:)

Falcorian
December 22nd, 2006, 11:11 PM
Guide worked perfectly for me! Thanks!

calande
December 22nd, 2006, 11:46 PM
the trick is to get tahoma from a windows installation (it isn't included in the ms core fonts download package). Used with the method in this tip/ tutorial, things look just like a windows installation - i.e., crisp, non-blurred tahoma as the default system font.

Actually the original post offers two methods to install the fonts. If you download the fonts pack (http://www.auriance.com/docs/fonts/msfonts.tbz), it does include Tahoma ;)

nmincone
December 23rd, 2006, 12:13 AM
I use either Automatix2 or EasyUbuntu to install not only the other font families mentioned here but all the media codecs and players and plug-ins as well. It makes working in Ubuntu much more like working in Windows altogether.

logos34
December 23rd, 2006, 04:24 AM
Thanks Calande!

That simple fontconfig fix sharpened things up quite a bit! Now tahoma renders crisply almost (but not exactly) as it does in windows. Web page fonts (except bold urls) much improved.

graficus
December 26th, 2006, 12:23 AM
now everything looks like its windows 2000. i was hoping for xp cleartype look.

frotzed
December 29th, 2006, 06:51 PM
I'm very very new to ubuntu and linux as a whole.

When in run this command in terminal: sudo apt-get install msttcorefonts

I get to a confirmation notice, I type "y" and then hit enter.

I then get an error:

Err http://3v1n0.tuxfamily.org edgy/3v1n0 flashplayer-nonfree 9.0.21.78.2ubuntu2+3v1ubuntu1
The HTTP server sent an invalid reply header
Failed to fetch http://3v1n0.tuxfamily.org/pool/edgy/3v1n0/flashplayer-nonfree_9.0.21.78.2ubuntu2+3v1ubuntu1_i386.deb The HTTP server sent an invalid reply header
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

What's up with that? Why is installing a set of fonts so hard? I've been working on this for 8 hours and am getting VERY frustrated.

Manzabar
December 30th, 2006, 05:14 PM
What's up with that? Why is installing a set of fonts so hard? I've been working on this for 8 hours and am getting VERY frustrated.

1. You're working with a 3rd party repository which appears to be broken.
2. You've got other non-font packages that do not appear to be installed correctly (e.g. flashplayer-nonfree sounds like it's broken). Apt (the cli utility behind Synaptic) is trying to automatically fix the broken packages; however since it's looking at a repository that is itself broken you kind of trapped. If you go back to my reply on your other post (http://ubuntuforums.org/showthread.php?p=1947476#post1947476), we may be able to get your issues fixed.

frotzed
January 1st, 2007, 05:24 AM
I got it all worked out, Manzabar! I'm so incredibly happy! Ubuntu rocks!

puresniper
January 1st, 2007, 05:24 PM
I get a 404 when I try to download the XML file, is there a mirror for it? I would love to get this working.

Fajer
January 1st, 2007, 09:30 PM
Yes, I got the error when trying to get xml file and msfonts.tbz package. Anyone could host it somewhere and put the link here? or send it via email?

Please?

frotzed
January 1st, 2007, 10:09 PM
Yes, I got the error when trying to get xml file and msfonts.tbz package. Anyone could host it somewhere and put the link here? or send it via email?

Please?

clicky (http://openswitch.org/backpack/myfonts.tar.gz) 8)

Fajer
January 1st, 2007, 10:14 PM
Thanks a lot! :D

mastergunner
January 2nd, 2007, 03:01 AM
How do you enable the extra repositories? Also how do you exactly do it? I am a newb so step by step method is best for me. Thanks.

frotzed
January 2nd, 2007, 06:13 AM
System>Administration>Synaptic Package Manager>Settings>Repositories

mastergunner
January 2nd, 2007, 05:05 PM
Thanks frotzed. Could someone explain step bu step on how to install these fonts. Thanks.

frotzed
January 2nd, 2007, 05:14 PM
Install Automatix (http://www.getautomatix.com/). It's the easiest way to install the fonts.

mastergunner
January 2nd, 2007, 11:44 PM
Ftotzed I forgot I was using Kubuntu so a little lost on how to configure repositories in it

frotzed
January 2nd, 2007, 11:52 PM
Sorry, I have no knowledge whatsoever of Kubuntu :(

bodhi.zazen
January 3rd, 2007, 01:33 AM
Ftotzed I forgot I was using Kubuntu so a little lost on how to configure repositories in it

Same as Ubuntu :p

http://ubuntuguide.org/wiki/Dapper#Repositories

mastergunner
January 3rd, 2007, 03:27 PM
Thanks bodhi but Kubuntu doenst have a Synaptic Package Manager link. So anyone working Kubuntu if you can help me out with getting MS fonts on my computer I would appreciate it.

greygoo
January 3rd, 2007, 10:59 PM
I get a 404 when I try to download the XML file, is there a mirror for it? I would love to get this working.

Don't know if it is the same file....but I found this to solve the problem: http://www.auriance.com/docs/pcbsd/fonts/fontconfig/

And I must say: I can see clearly now.... :D

Now fonts in browser and in terminal-windows are how I like it best...
I just copied the files to /etc/fonts (after making a bak of my fonts.conf and installing the fonts) restartet x and felt better.

gh0st
January 3rd, 2007, 11:15 PM
This is really cool, thanks a lot. Now viewing some websites in Firefox doesn't look like they were designed by a 2 year old. Much appreciated :)

yopnono
January 3rd, 2007, 11:35 PM
Removed The Link.

mastergunner
January 4th, 2007, 03:16 AM
Yopnono could you tell me how I am supposed to install these fonts? I have Kubuntu 6.06. Thanks and yes I have dowloaded the file and extracted it with Ark I think. It says it wants to open an external viewer or something.

mastergunner
January 4th, 2007, 03:21 AM
Well I finally clicked on the file and it said it tried to download but could not get a hold of the site.

yopnono
January 4th, 2007, 09:27 AM
Well I finally clicked on the file and it said it tried to download but could not get a hold of the site.

It's deb in side the archive. Extract it and install like normal. then if needed open the system settings for font and adjust the fonts.

elreteipos
January 4th, 2007, 01:52 PM
I get this error:
pdedecker@BETAubuntu:~/Desktop$ sudo tar xvjpf fontconfig.tbz -C /etc/fonts/
bzip2: (stdin) is not a bzip2 file.
tar: Child returned status 2
tar: Uitgestelde afbreking na eerdere fouten

kingtsy
January 5th, 2007, 08:59 AM
i got an error message

ar: fontconfig.tbz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
please help

BeauX1
January 8th, 2007, 01:30 AM
I will put the whole lot on my site. MS core font + config files all in a deb for installation to all the right places.
Including Tahoma

Hope the download speed is ok.
http://www.mobelforum.com/download/msttcorefonts_nicefonts_1.4-1.tar.gz
Thanks, that worked great.

Manzabar
January 8th, 2007, 01:54 AM
Thanks bodhi but Kubuntu doenst have a Synaptic Package Manager link. So anyone working Kubuntu if you can help me out with getting MS fonts on my computer I would appreciate it.

Kubuntu uses Adept instead of Synaptic. Look under Kmenu > System > Adept Package Manager.

calande
January 8th, 2007, 02:26 AM
Sorry about that guys, I fixed the broken links in my original post ;)


I get a 404 when I try to download the XML file, is there a mirror for it? I would love to get this working.

graficus
January 9th, 2007, 03:21 AM
yopnono I appreciate your effort in posting the file.
how do I uninstall this "nice font" thing, it seems to have overwritten all settings without making backup. now i feel like am stuck in windows 95 look forever.

calande
January 9th, 2007, 12:13 PM
Sorry about that. The screenshot was an extra warning to remind you how it was gonna look like in case you don't use Windows somewhere else :rolleyes:

Just remove /etc/fonts/local.conf

yopnono
January 9th, 2007, 12:20 PM
yopnono I appreciate your effort in posting the file.
how do I uninstall this "nice font" thing, it seems to have overwritten all settings without making backup. now i feel like am stuck in windows 95 look forever.

Open synaptic and uninstall it.

calande
January 9th, 2007, 12:21 PM
Ah ah!! Only if he used the .deb file that was posted above.

yopnono
January 9th, 2007, 01:25 PM
Ah ah!! Only if he used the .deb file that was posted above.

If you like I can remove the .DEB, now when you have fixed the links for you files.

SilBex
January 9th, 2007, 07:55 PM
I installed the .deb from yopnono and now the Font looks generally good! Good Work guys!

Only if the Font is bold, it doesn't looks so good... here an example:

http://img481.imageshack.us/img481/4635/boldfontnq0.png

However its not so important.

GreetZ!

graficus
January 10th, 2007, 01:45 AM
you know what, i just found a solution. the hell with all this linux cr*p, and the fonts, and the command line, and the pain of doing anything with it. spent 99% of the time trying to make something work. how about work itself? sc*ew it. will stick with xp for now, and will get a mac a bit later. yeah, roll ur eyes, another whiner.
peace to u all.

yopnono
January 10th, 2007, 10:22 AM
you know what, i just found a solution. the hell with all this linux cr*p, and the fonts, and the command line, and the pain of doing anything with it. spent 99% of the time trying to make something work. how about work itself? sc*ew it. will stick with xp for now, and will get a mac a bit later. yeah, roll ur eyes, another whiner.
peace to u all.

Linux is not for every one, specially if the user don't have the time to learn.
I guess the MS windows, did work directly first time you ever tried it, and your way.

Better luck next time :)

blueven
January 10th, 2007, 09:00 PM
hi, thank you for your support!
i have installed the fontconfig of the first post, but firefox and openoffice do not appear with the new fonts, while the other programs yes.
Can you tell me what parameter i must set in firefox and openoffice to look they good?Anyone use Kubuntu?
I see that only kde application are ok, while all the other use the old fonts.

I use Kubuntu 6.10 , and i have installed so :
# sudo apt-get install msttcorefonts
# sudo tar xvjpf fontconfig.tbz -C /etc/fonts/

thank you for any answer...

Michaelt74
January 11th, 2007, 04:56 AM
Thanks for the thread, my desktop looks a little better with the new fonts.

I have a problem with Open Office fonts. I checked through the posts on this thread but none of the solutions helped (p10).

I have installed the MS core fonts and have the option to select Arrial and Times New Roman
when I use OO, but no matter what I do the fonts look terrible in OO.

I downloaded Micrsoftfonts from pbiDIR - do I need to install these into some OO directory?

http://www.pbidir.com/search.php?str=microsoft+fonts

Which of these do I need?

If so please could someone tell me the install commands, step by step as I'm still a very Newbie

Thanks!

yopnono
January 11th, 2007, 09:31 AM
I have a problem with Open Office fonts. I checked through the posts on this thread but none
when I use OO, but no matter what I do the fonts look terrible in OO.
Thanks!

The Ubuntu OOo don't render system font well, the official does.

yopnono
January 11th, 2007, 09:35 AM
hi, thank you for your support!
i have installed the fontconfig of the first post, but firefox and openoffice do not appear with the new fonts, while the other programs yes.
Can you tell me what parameter i must set in firefox and openoffice to look they good?Anyone use Kubuntu?
I see that only kde application are ok, while all the other use the old fonts.

I use Kubuntu 6.10 , and i have installed so :
# sudo apt-get install msttcorefonts
# sudo tar xvjpf fontconfig.tbz -C /etc/fonts/

thank you for any answer...

Open the system settings for fonts, then change the font setting for fx also set the font to use 96dpi and try different advanced (I think it called) settings for fonts. I'm on gnome.

blueven
January 11th, 2007, 07:01 PM
i force to 96dpi but is the same! i see that in my system font setting in kde control is all set to sans serif 9. It's correct?
what settings do you have in firefox font and colors ' tab ?
is there anyone tha use kde ?

Help me please...

yopnono
January 11th, 2007, 07:26 PM
i force to 96dpi but is the same! i see that in my system font setting in kde control is all set to sans serif 9. It's correct?
what settings do you have in firefox font and colors ' tab ?
is there anyone tha use kde ?

Help me please...

Ook I'm on kde now I don't change anything in FX, my setting in kde are...
TT Fonts
sans serif 10
Use anti-alising > use sub pixel hinting RGB
96 DPI
-----
GTK styles and fonts
Use my KDE style

And all this is standard (more and less) :)

blueven
January 12th, 2007, 02:16 AM
are your fonts working in Firefox and kde?
i try to reinstal fx but is the same!
Where you look for font settings in kde?

yopnono
January 12th, 2007, 10:51 AM
are your fonts working in Firefox and kde?
i try to reinstal fx but is the same!
Where you look for font settings in kde?

K-menu > System settings > apperance / Fonts / GTK styles and fonts

There is no need to adjust any font settings in Firefox. Only in KDE

stormyuk
January 14th, 2007, 06:12 PM
Hi,

Thanks for the tips, I have a little problem in firefox and openoffice, firefox content is usually ok but with some buttons messed up and the menu bar etc is still as was before, OpenOffice has really BAD menu's and blurry content.

Any idea how to fix it?

Firefox:

http://img408.imageshack.us/img408/7610/snapshot3at8.th.png (http://img408.imageshack.us/my.php?image=snapshot3at8.png)
Thanks,

OpenOffice:

http://img408.imageshack.us/img408/8893/snapshot4gp8.th.png (http://img408.imageshack.us/my.php?image=snapshot4gp8.png)

Mike

blueven
January 14th, 2007, 08:47 PM
K-menu > System settings > apperance / Fonts / GTK styles and fonts

There is no need to adjust any font settings in Firefox. Only in KDE


Thank you very much!!!
I haven't set the kde fonts for gtk application!!!

Now is OK!!!

stormyuk
January 14th, 2007, 08:55 PM
K-menu > System settings > apperance / Fonts / GTK styles and fonts

There is no need to adjust any font settings in Firefox. Only in KDE

Ahh that worked for me too in firefox. Thanks very much. OpenOffice is still a bit messed up compared to everything else though.

Edit: Also some websites, usually linux resources :) seem to override the setting and force anti-aliased fonts? Take a look at this one:

http://wiki.cchtml.com/index.php/Main_Page

http://img123.imageshack.us/img123/4493/snapshot7rm4.th.png (http://img123.imageshack.us/my.php?image=snapshot7rm4.png)

Compare that to the clean lines in Windows XP

http://img158.imageshack.us/img158/8177/image1dm7.th.png (http://img158.imageshack.us/my.php?image=image1dm7.png)

Disapointing :(

I have been playing more and still can't get to the bottom of this, I am finding more and more webpages that just look odd in ubuntu/linux compared to XP using Firefox. All I want is my ubuntu Firefox to look like XP. How hard can it be? :(

I even tried de-checking the "allow web pages to select fonts" option but that really messes is up. Is there a way I can select the "exact" same fonts in Firefox's font options as that in windows? (Arial, Times New Roman etc etc). I am at work at the moment so can't check what font options Firefox gives me in Ubuntu. Will that just mess it up more?

Thanks for any assistance you can provide. If I could bottom this I would be one step closer to ditching XP.

Mike

Zdravko
January 14th, 2007, 10:32 PM
I have a problem... The MS fonts were installed. Then I extracted the font-config - OK. The fonts now really look sharper. But can someone tell me the best settings for them? Including the general font for Ubuntu and the Firefox settings for it? Because I use Serif 10pt by default and it is really sharp for my eyes.

stormyuk
January 15th, 2007, 08:57 PM
While still not 100% perfect I have managed to get is very very close by selecting the same fonts in Linux Firefox preferences to that of Windows XP firefox, some fonts STILL refuse to show without aliasing but its a lot better than it was.

Cheers,

Mike

augie0x
January 16th, 2007, 10:07 AM
Running sudo apt-get update && sudo apt-get upgrade from time to time helps in installing everything u need without any errors!

blueven
January 18th, 2007, 03:58 PM
But it's possible to install the MS Sans Serif and the MS Serif too?

John Bennett
January 21st, 2007, 03:56 PM
I use Firefox to read long articles.

This is soooo much better.

Obrigado Calande meu amigo !

Jarn
January 30th, 2007, 03:45 AM
Is there any way to change what programs use these modified fonts? I love it in Konqueror, but I absolutely LOATHE it in a terminal. If it can't be set on a program by program basis, how do I change it back to the way it was originally?

Derspankster
February 2nd, 2007, 02:32 PM
I likes it better the way it was. I had installed TT fonts but hadn't configured them. They looked better that way than they do now. Any way to revert back to what I had?

linuks
February 2nd, 2007, 03:23 PM
Thanks, that worked great.

Yopnono,

For me too, It worked beautifully.

kanha
February 15th, 2007, 05:21 PM
superb:guitar:

calande
February 15th, 2007, 05:35 PM
Edit: Also some websites, usually linux resources :) seem to override the setting and force anti-aliased fonts? Take a look at this one:

http://wiki.cchtml.com/index.php/Main_Page

http://img123.imageshack.us/img123/4493/snapshot7rm4.th.png (http://img123.imageshack.us/my.php?image=snapshot7rm4.png)

Compare that to the clean lines in Windows XP

http://img158.imageshack.us/img158/8177/image1dm7.th.png (http://img158.imageshack.us/my.php?image=image1dm7.png)

Disapointing :(

Yes, this happens because these guys force crappy fonts (Bitstream family) to Unix users, because they know they have Bitstream installed, while Windows doesn't. The only way is to solve this problem is to uninstall the Bitstream crap :)

zemitras
March 12th, 2007, 08:40 PM
Hi there!

I have been struggling with the installation of msttcorefonts for a wile, I followed your guide (extracting files) and nothing happened :(

When I do "apt-get install msttcorefonts" I get error, same error in automatix2:


dpkg: error processing msttcorefonts (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
msttcorefonts
E: Sub-process /usr/bin/dpkg returned an error code (1)


I really don't know what to do, can anybody help me?

I have ubuntu 6.10 Edgy

Regards

sagara
March 17th, 2007, 09:56 PM
The link in the original post for the config file is broken again... Could someone fix it or post a new link please? Thanks.

Nevermind... link worked on the 5th try.

sagara
March 18th, 2007, 09:13 PM
Hi I followed your steps and it worked nicely! thanks!

However I am getting the following mild error whenever i run gedit from the terminal:


$ gedit file
Fontconfig error: "~/.fonts.conf", line 1: XML declaration not well-formed

This however doesnt stop gedit from running.

The contents of my ~/.fonts.conf file is:

<?xml version=”1.0” ?>
<!DOCTYPE fontconfig SYSTEM “fonts.dtd”>
<fontconfig>
<match target=”font”>
<edit name=”autohint” mode=”assign”>
<bool>true</bool>
</edit>
</match>
</fontconfig>


What seems to be the problem?
Thanks in advance!

joebloggs
March 24th, 2007, 11:47 AM
The code has incorrectly formed quotation marks.

They are itallicised and therefore not recognised. Open the file and retype your double quotes to make them regular ones. Alternatively replace them with a single '

Joe

sagara
March 24th, 2007, 04:18 PM
The code has incorrectly formed quotation marks.

They are itallicised and therefore not recognised. Open the file and retype your double quotes to make them regular ones. Alternatively replace them with a single '

Joe

Joe, that did the trick. Thanks a lot!

attorianzo
April 14th, 2007, 04:59 PM
It worked perfectly but... Now I want standard gnome fonts again!! What I have to do??

calande
April 14th, 2007, 05:02 PM
Rename /etc/fonts/local.conf to local.conf.bkp

attorianzo
April 14th, 2007, 05:25 PM
Rename /etc/fonts/local.conf to local.conf.bkp
Worked :) thank you.

I suggest you to add it to your guide (thank you great guide!)

stormyuk
April 17th, 2007, 02:20 PM
Yes, this happens because these guys force crappy fonts (Bitstream family) to Unix users, because they know they have Bitstream installed, while Windows doesn't. The only way is to solve this problem is to uninstall the Bitstream crap :)

How? :D

Thanks,

Mike

yopnono
April 17th, 2007, 03:30 PM
How? :D

Thanks,

Mike

Or you can set the firefox to use the font * sans-serif * as default. Make sure the fonts ar set just like the pic.
That works for me.

See img.

gustavo :)
April 17th, 2007, 04:55 PM
Nice tutorial :) worked well here (using Kubuntu), now my fonts are looking good for me...
But I've got a little issue...I can't set my Window Title font when using Beryl :S
The font that i've set appears when I'm using KWin window manager, but when I change to beryl the Window Title font turns to Tahoma :\

What can I do?

thx

CarpKing
April 20th, 2007, 12:54 AM
Nice tutorial :) worked well here (using Kubuntu), now my fonts are looking good for me...
But I've got a little issue...I can't set my Window Title font when using Beryl :S
The font that i've set appears when I'm using KWin window manager, but when I change to beryl the Window Title font turns to Tahoma :\

What can I do?

thx

Launch Emerald Theme Manager and go to the Edit Theme tab, then the Titlebar tab. On the left side should be an option called "Title-Text Font."

finferflu
April 20th, 2007, 11:06 AM
Is there any way to revert this to the original? Now my fonts are all ultra-thin and not stylish at all, I liked it more before... shall I just delete the files I have copied in /ect/fonts/ ?

Thanks

Jarn
April 20th, 2007, 12:59 PM
That's what I did when I wanted to revert and it seemed to work.

finferflu
April 20th, 2007, 05:08 PM
That's what I did when I wanted to revert and it seemed to work.
Thanks! that worked as a charm :)

Yggdrasill
April 23rd, 2007, 05:28 AM
Is there a way to apply these font effects to Konqueror?

TravisNewman
April 23rd, 2007, 05:30 AM
Everything was smooth and looked VERY nice, except for the forums. When I came here it was just unreadable. So I just deleted those conf files and I'm back to normal. I don't know why it did that just to the forums.

calande
April 23rd, 2007, 12:44 PM
Is there a way to apply these font effects to Konqueror?

Make sure you use generic font families in Konqueror (Sans Serif, Serif, Monospace, etc...)

navneeth
April 23rd, 2007, 06:31 PM
This method doesn't seem to work for me in Feisty. I had no problems with it in Edgy. But here, after at least a couple of logins, I don't see the fonts.


navneeth@ubuntu:~$ sudo apt-get install msttcorefonts
Reading package lists... Done
Building dependency tree
Reading state information... Done
msttcorefonts is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.



navneeth@ubuntu:/etc/fonts$ ls
alias.conf conf.d fonts.dtd misc.conf
conf.avail fonts.conf local.conf msfonts-rules.conf

navneeth
April 24th, 2007, 08:18 AM
Anyone?

yopnono
April 24th, 2007, 08:27 AM
Removed The Link.

calande
April 24th, 2007, 12:33 PM
Could you make sure the fonts are still in the fonts directory where they were extracted?

Could you make sure the fonts directory is listed in xorg.conf also?

Are you able to use the fonts in other applications such as OpenOffice.org or Abiword?

navneeth
April 24th, 2007, 09:33 PM
Could you make sure the fonts are still in the fonts directory where they were extracted?
Now I don't even find a TTF directory at the address provided in the first post! :confused:

navneeth@ubuntu:/usr/X11R6/lib/X11/fonts$ ls
encodings


I tried extracting the msfonts.tbz, but I get an error

navneeth@ubuntu:~$ sudo tar xvjpf Desktop/msfonts.tbz -C /usr/X11R6/lib/X11/fonts/TTF/
tar: /usr/X11R6/lib/X11/fonts/TTF: Cannot chdir: No such file or directory
tar: Error is not recoverable: exiting now




Are you able to use the fonts in other applications such as OpenOffice.org or Abiword?
I didn't find those fonts listed in OO.

yopnono,
Thanks for the file. I'll give it a try if this doesn't work out.

calande
April 24th, 2007, 09:41 PM
Strange... Type the following:


%sudo mkdir -p /usr/X11R6/lib/X11/fonts/TTF

Then start over: http://ubuntuforums.org/showthread.php?t=208396
Did it work now?

navneeth
April 27th, 2007, 02:53 PM
Strange... Type the following:


%sudo mkdir -p /usr/X11R6/lib/X11/fonts/TTF

Then start over: http://ubuntuforums.org/showthread.php?t=208396
Did it work now?

Sorry for the delayed reply. I'm afraid that the above method didn't work. The TTF folder was created with the fonts, but somehow that config file didn't do its magic. :( Surprisingly, I find Opera displays MS fonts, even after deleting the TTF files.

chefare
April 30th, 2007, 10:33 PM
Sorry for the delayed reply. I'm afraid that the above method didn't work. The TTF folder was created with the fonts, but somehow that config file didn't do its magic. :( Surprisingly, I find Opera displays MS fonts, even after deleting the TTF files.

I tried to install the Microsoft fonts on my Ubuntu 7.04, but I hade the same problem (the directory TTF was not present), so I created it and reinstalled fonts, but... it doesn't go, I don't see the new fonts :-(
I remember that few days ago I tried to install Microsoft fonts on Ubuntu 7.04 upgraded with KDE interface (Kubuntu-desktop) and I saw and used fonts (I don't know if this is the reason)... but Kubuntu was instable and I reinstalled normal Ubuntu... I hate the original fonts of Ubuntu, is there a way to use Microsoft fonts on Ubuntu too? :-(

yopnono
May 1st, 2007, 08:35 AM
Strange... Type the following:


%sudo mkdir -p /usr/X11R6/lib/X11/fonts/TTF

Then start over: http://ubuntuforums.org/showthread.php?t=208396
Did it work now?

Calande is there any specific reason why you want to have the fonts in that dir?
The *normal* location is
/usr/share/fonts/truetype there is where I always put the fonts.
And so far I have not had any problems.

calande
May 1st, 2007, 02:06 PM
Try it. Maybe the fonts dir changed with newer versions of Debian or X.org? It used to be /etc/fonts/<some_dir>

Who know, maybe it'll just work! :)
Please let us know.

yopnono
May 1st, 2007, 02:27 PM
Try it. Maybe the fonts dir changed with newer versions of Debian or X.org? It used to be /etc/fonts/<some_dir>

Who know, maybe it'll just work! :)
Please let us know.


/etc/fonts/
Is that not only for the font config files?

Braese
May 2nd, 2007, 04:43 PM
How can i enable ClearType for this Solution? Thx

sv87411
May 2nd, 2007, 06:25 PM
I have tested this on Feisty and can confirm that you need to put the fonts in


/usr/share/fonts/truetype

So for Feisty users, follow the original instructions, but extract the fonts using the following command:


sudo tar xvjpf msfonts.tbz -C /usr/share/fonts/truetype/

It's worked for me and I now have nice MS fonts. :)

NilsE
May 3rd, 2007, 11:50 PM
How can i enable ClearType for this Solution? Thx
I think the closest to ClearType option you will get is to go into font preferences and click on details and tinker with the hinting and smoothing options.

Ruhe
May 5th, 2007, 06:02 PM
Hi, I have a problem:

http://img508.imageshack.us/img508/5202/screenshotng2.th.png (http://img508.imageshack.us/my.php?image=screenshotng2.png)

I followed the first post in this thread, I tried to install deb file, but still many apps don't want to use sharp fonts. It's not a problam of russian lang, I logged in with english language, but it did't change anything.

I think that this can be my problem(wrong dpi and length&height in mm):

ruhe@desktop:~$ xdpyinfo | grep dimensions
dimensions: 1024x768 pixels (321x241 millimeters)
ruhe@desktop:~$ xdpyinfo | grep resolution
resolution: 81x81 dots per inch

I used this line in xorg.conf

DisplaySize 270 203 # 1024x768 96dpi
but it doesn't take effect. I don't know what to do (((

calande
May 5th, 2007, 11:03 PM
Make sure in the Gnome front-end you're using generic font families (Sans Serif, Serif, Monospace...) instead of Bistream or Dejavu.

Ruhe
May 6th, 2007, 11:04 AM
On my screenshot I had Tahoma font in all settings excluding monospace.
Now I changed font to sans(tried serif), but still no changes. It seems that there is another config file which blocks settings from Font Manager. A lot of apps(firefox, opera, firestarter) use sharp fonts but others don't.

smdeep
May 12th, 2007, 06:41 PM
Works perfectly for me in Feisty, had worked perfectly in Kubuntu Edgy. The man is a genius and this should be a sticky IMHO.
:)

calande
May 12th, 2007, 06:54 PM
No, not a genius, but it took a fair amount of time due to sparse documentation.
Namaste,

adarkenigma
May 13th, 2007, 09:03 AM
how can revert back to original setting?

yopnono
May 13th, 2007, 09:55 AM
how can revert back to original setting?

Humm let's see. Ah, just remove the files you added to your system ;)

adarkenigma
May 13th, 2007, 12:13 PM
okay thanks let me try that

calande
May 13th, 2007, 03:53 PM
Or just rename local.conf to local_.conf

:)

ryanVickers
May 29th, 2007, 04:54 AM
wow, those are awful! - perfect, just like windows! :p

calande
May 29th, 2007, 11:09 AM
If it's to add a flaming comment meaning in a nutshell that all that is from Microsoft "is evil", no thanks. Respect our choice please :evil:

gozalo
May 29th, 2007, 07:28 PM
hmmmmmm

It's not working for me :-(

can u check here plz :o

http://ubuntuforums.org/showthread.php?t=456881&page=1

michaelzap
June 2nd, 2007, 11:55 PM
Hmm. I really don't like how it looked after I did this, and just uninstalling the font package made my system a bunch of gobbledygook that was hard to reset to something readable. So how can I get my old fonts back and undo those XML files please?

calande
June 3rd, 2007, 12:37 AM
Remove /etc/fonts/local.conf. If you had had a look at the original screenshot beforehand, you wouldn't have done this mistake.

michaelzap
June 3rd, 2007, 01:07 AM
Thanks. That did the trick. I was afraid to just delete it after how totally freaked it it was when I only removed the m$ fonts...

Delacroix
June 5th, 2007, 05:13 PM
Can anyone host the new fontconfig file that was in the PC-BSD Forum?

http://www.auriance.com/docs/fonts/fontconfig.tbz This link is dead. Or is this the same as the one on page 1?

EDIT: Is it just me or are the fonts hurting people's eyes now? I can't stand the fonts now damn. Now I'm back on XP with Cleartype on and it so much better and sharper unlike the blurry fonts on Ubuntu.

Arseny
June 6th, 2007, 02:51 PM
calande, I need your help. How can I add Lucida Console font to this kit? I would like to use it with Konsole and Kate :/ Thx :)

dannymichel
June 9th, 2007, 07:13 AM
I don't like the way it displays fonts in firefox. Is there any way I can undo it for Firefox?

dannymichel
June 9th, 2007, 07:14 AM
Is there any way to undo this ONLY for Firefox?

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>

<!-- PC-BSD - Fonts configurations v.12012006-->

<!-- Miscellaneous settings -->

<include ignore_missing="yes">misc.conf</include>

<!-- Define alias -->

<include ignore_missing="yes">alias.conf</include>

<!-- Rules for Microsoft fonts -->

<include ignore_missing="yes">msfonts-rules.conf</include>


</fontconfig>

calande
June 9th, 2007, 10:33 AM
Arseny: Just add Lucida to your fonts directory, log out and log back in.

Danny: Yes, you can do it due to a bug! :) Open msfonts-rules.conf and remove the lines that contain the word "pixelsize", log out and log back in. It will blur fonts out in Firefox :)

Nephiel
June 13th, 2007, 10:06 AM
This seems to have caused quite an issue - it's hard to explain this, but now my computer is rendering only the left hand side of each line, until I select it, and upon selection, it fixes itself.

For example, if I bring up a menu, go to the "sound and video" section, I can see "GXine" in the menu. If I then run my mouse over that (ie, without clicking, just making the background go dark - what do you call doing that lol), it changes then to "GXine Movie Player" - ie, it renders the full string of text.

Ideas? I do much prefer the fonts like this and I'd like to keep it if I can get rid of this problem.

Oh, and also, it happens in almost everything - the GKSudo dialogbox, in Evolution, etc.

I have the same issue, but it seems to happen only in Firefox. I've noticed that it happens when browsing a page using MS fonts without antialiasing and with the CSS attribute "letter-spacing:" applied to them, but it could happen in other situations as well. When I'm not using MS fonts without antialiasing, the text is correctly displayed.

On these web pages, on some lines of text, Firefox shows only the first word of each line until I "touch" the rest of the line. Let me explain:

For example, one page which shows this bug is this one (http://samurai1200.blogspot.com/2006/12/be-asteroid.html).
I have nothing to do with that page BTW, it's just the first page I bookmarked which showed this bug.

In that page, there's a line of text like this:

Saturday, December 02, 2006
Firefox only shows this:

Saturday,
until I click to select the rest of the text with the mouse, making it visible. I know the "invisible" text is there because the mouse cursor changes from the little arrow to the text caret when I move it over the text; it's just that the text can't be seen.
However, in that same page, there's another line of text like this:

View my complete profile
Only the first word "View" is shown. But unlike the other line, this one happens to be a link, and so when I hover the mouse over the text, the link text changes color and gets underlined. When this happens, the entire line of text becomes visible.

All this is a bit hard to explain. I'm attaching screenshots so you can see better what I'm talking about, but if you try it for yourselves, the better. There are quite a few lines like those in that page.

I want to use MS fonts without antialiasing because I need web pages to be shown just like they would under Windows, or as similarly as possible. Basically I want MS fonts for web browsing.

metjay
June 18th, 2007, 06:18 PM
Thanks dude,
you just saved my life.
works fine

Luis Marks
June 21st, 2007, 07:18 PM
Hey, thanks for your great work. I use Tahoma font size 8 but in small and italic fonts this view ugly (snapshot of K3B attached). How can i make this better ?

PS: Sorry for the bad english...

calande
June 21st, 2007, 07:29 PM
Infelizmente, there's nothing you can do about it. I talked a few months ago with the Freetype devs and they said they were working on it always, but it's a complicated algorythm... It's improving very slowing across new versions. You shouldn't use a fonts that small IMO. The font size you're using for the rest of your applications is perfect, I think :)

Luis Marks
June 21st, 2007, 07:34 PM
You are quickly :D . Yes, all the applications is perfect ! Thanks for the answer and for the great work. ;)

FooFoo_2
June 23rd, 2007, 12:50 AM
Hi everyone

I found a link on this tutorial on a french board. I followed the procedure and all is working, except one small detail that I could not solve. I hope that you can help me.

After installing and applying the new fonts on my system, I just remarked that the passwords fields (aMuleGUI, Firefox master password, etc) were filled with stars (*) and no more with circles. And I can find any configuration file where I can specify if I want to use stars (*) or circles. Before applying the new fonts, the password fields were filled with circles.

An interesting thing is that the passwords fields of GDM and gksudo are filled with circles (before and after applying the new fonts).

Here a printscreen of aMuleGUI:
http://img404.imageshack.us/img404/3166/connectmr2.th.png (http://img404.imageshack.us/my.php?image=connectmr2.png)

Thank you in advance for your help and have a nice day.

Best regards from Switzerland :)

sambehera
June 23rd, 2007, 03:47 AM
thanks... this worked... much better than truning off anti-aliasing uptil "pt 9"...

i had followed the howto here... http://alkalay.net/linux/docs/font-howto/Font.html

but that only worked well for the root account... the font rendering in my usual account actually became worse (monochromatic type) ...

this did fix my problem but added the stars in the password field... and anti aliasing doesnt work for my "trebuchet 10pt" titlebar font anymore ... now am looking to smooth out the fonts in swiftweasel.. hope the method described above works...

overall... thanks...!! i was really baffled why the earlier fix was working for my root user account but not for my usual one..:D

turezky
June 28th, 2007, 05:53 PM
That was the last post convincing me (in addition to some malware on my vista) to switch completely to ubuntu :) Thank you, thank you, thank you :)

Sabretooth
July 15th, 2007, 06:26 PM
Hi, I love this fix. It makes Ubuntu's fonts so much nicer! But I have one rather obtrusive problem.

My fonts aren't anti-aliased, as far as I can tell, especially at the italics. This is really bugging me, because I'm used to smooth, cleartype-esque fonts. How do I make them smooth?

calande
July 15th, 2007, 07:05 PM
Namaste, this is the way they're supposed to look like, just like the screenshot of the first post (http://ubuntuforums.org/showthread.php?t=208396) :)
If you dislike, rename the /etc/fonts/local.conf file to /etc/fonts/local.conf.bkp ;)

Pronco
July 15th, 2007, 09:55 PM
Tahoma font doesn't work properly. It looks like a squares

Does it work with somebody ?

Cheers,
Pronco

Sabretooth
July 16th, 2007, 06:31 AM
Well, yeah but in your screenshot, things are much smoother. There is some jaggedness, but I wouldn't mind that. My fonts are looking rather rough. Can you tell me a way to anti-alias/smoothen fonts without affecting this fix? :(

@Pronco: My Tahoma's working perfectly well. Except for the aforementioned problem. :D

srg84
July 27th, 2007, 02:28 PM
Thanks is perfect.

seelk
August 2nd, 2007, 04:23 AM
Worked like a charm under Kubuntu Feisty. Question, would this work on other distros like Gentoo, Fedora, etc.?

calande
August 2nd, 2007, 10:33 AM
Yes, it works on any Linux/*BSD distro ;)

ferd
August 7th, 2007, 10:24 PM
I tweaked the fontconfig XML files so that fonts look like on Windows. This code is borrowed from PC-BSD (http://www.pcbsd.org). First, let's install the Microsoft fonts. You have 2 ways of doing so:

Either download the fonts (http://www.osresources.com/files/centos-windows-fonts/msfonts.tbz) into your home directory and install them on your system:


sudo tar xvjpf msfonts.tbz -C /usr/share/fonts/truetype/

Or, enable non-free, universe and multiverse repositories and install the Microsoft fonts:


sudo apt-get install msttcorefonts

You now have the Microsoft fonts installed. Let's configure your system now.

Download the xml files (http://www.osresources.com/files/centos-windows-fonts/fontconfig.tbz) and extract the file into /etc/fonts/ as root:


sudo tar xvjpf fontconfig.tbz -C /etc/fonts/

Log out from Ubuntu and relog in. Here's how your desktop will look like:

http://img412.imageshack.us/img412/6972/ubuntu5ui.th.png (http://img412.imageshack.us/img412/6972/ubuntu5ui.png)

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

DIGG IT! (http://digg.com/linux_unix/Display_Microsoft_fonts_in_Unix_like_on_Windows)

Thank you so much for this. Excellent on my multisync 90 GX2.