Help - Search - Members - Calendar
Full Version: Fonts
Neowin Forums > *nix Customization & Support > Linux Client Support
peekj
Anybody have any idea why fonts on webpages seem to be thicker (ie bolder) in my linux firefox than my window firefox?
insanekiwi
cuz linux uses (an)other font(s) ?
njlouch
Well, I would assume that Linux is substituting different fonts (if the coder has specified "Arial" for example).

If they generically specified "Sand-serif" then your default ss font may be different.
peekj
It's more like it's more anti-aliased in linux... see my image above. left is windows, right is linux.
markjensen
It is very likely because you don't have the fonts that Windows incluldes on your Linux box.

For example, Windows includes things like "Arial" and "Comic Sans". Linux doesn't have these (at least by the same name).

Web pages specify fonts from most specific to more general alternatives. For example, on news.google.com, they specify:
font-family:arial,sans-serif
This indicates that the browser should first try to use font "Arial". Windows includes that, so that is what will be used on a Windows box. On a Linux box, it looks and likely sees you don't have it (unless you installed it yourself, for the most part). In that case, it looks at the next option, which is "sans-serif", so your Linux browser will use the generic Sans Serif font that it has.

That explains the difference.

It is possible to have Linux use your Windows fonts. If you dual-boot, I believe you can even have a symbolic link to your Windows folder with the fonts, and Linux (technically, X) will be able to include them as available fonts. thumbs_up.gif
khaos34
Quote - (njlouch @ Nov 22 2004, 06:58)
Well, I would assume that Linux is substituting different fonts (if the coder has specified "Arial" for example).

If they generically specified "Sand-serif" then your default ss font may be different.
[snapback]584968085[/snapback]


It's "sans" serif, not "sand biggrin.gif Sans-serif, as in "without serif marks" - was probably a typo, since "d" is next to "s", but I though It'd say it in anyway since there some people out there who have no idea that sans-serif actaully means something tongue.gif
peekj
Do you guys know any howtos on getting windows fonts to work in linux? in particular with firefox.
markjensen
Quote - (peekj @ Nov 22 2004, 12:40)
Do you guys know any howtos on getting windows fonts to work in linux? in particular with firefox.
[snapback]584968336[/snapback]

I didn't read through it, but this link appears to have a lot of information on this.
http://linux.org.mt/article/ttfonts

In summary, you get your fonts where Linux can access them (either in one of your Linux directories, or link to them in your Windows/dual-boot partition), then make sure you have a pointer to that location for X to find them. Not overly complicated. However, for apps like GIMP to be able to use them you need to also specifically tell GIMP where to look (since it uses its own set of font locations, I think).
peekj
Thanks, I will give that a try.
peekj
Great, after trying to get some better fonts to work, I can now no longer get into XWindows.... startx returns no real error message except for a kded error. But kde isn't even supposed to start, gnome, or rather gdm does.

I dont know what is going on... I'm at my wit's end...
markjensen
What went wrong?

It really is no more than copying in a directory containing your fonts, then editing /etc/X11/xfs/config to include that directory in your path.

What steps did you take (do you remember)?
peekj
It involved a couple of ttmkfdir and makefontdir and xset, also SuSEConfig.fonts commands....
I honestly am not sure. I'm in the process of removing xorg right now...
markjensen
Quote - (peekj @ Nov 22 2004, 23:14)
It involved a couple of ttmkfdir and makefontdir and xset, also SuSEConfig.fonts commands....
I honestly am not sure. I'm in the process of removing xorg right now...
[snapback]584971827[/snapback]

Hmmmm... I have Fedora, but I made a choice to not do the "automated" apps. All they really should be doing is adding the path into the file, anyhow.

You might be better off locating your X font system folder and editing the config file yourself. You will probably get a better sense of understanding, too, knowing exactly what you did to make the change, too. wink.gif
peekj
well i did do this all manually. but you need to create a fonts.dir file in the new folder so that X recognizes it as fonts. that's what those tools are for.
I've recreated Xorg and that's fine. I can xinit and get X running. It seems to be kde/gnome that have problems. My error is always /usr/X11R6/bin/kde segfaulting. I am not sure why kde is involved in the first place. GDM is the default and then Gnome...
markjensen
Quote - (peekj @ Nov 22 2004, 23:24)
well i did do this all manually. but you need to create a fonts.dir file in the new folder so that X recognizes it as fonts. that's what those tools are for.

Are you sure? I don't recall doing anything more than copying the directory off my USB stick and into my home directory. I just linked to them in that location (it isn't good form for me to have put them there, as I really should have put them where all users could link to them - but this is a one-user machine, so I get sloppy) tongue.gif


EDIT: I am not sure if you may have a bad font file in there that could cause a major problem with KDE...
peekj
yup.... that would have been it... sad.gif stupid me

Now to find which font file is the bad one, hehehe

EDIT: I had to delete all the new fonts. Just removing the font line from the xorg.conf file didn't seem to help because that was the first thing I did when I started this 4 hours ago wink.gif
kjordan2001
Easiest way to add fonts is to make a .fonts directory in your home directory then copy the fonts into it and do a
CODE
mkfontdir && mkfontscale
in the .fonts directory.
peekj
So yeah, it was just a bad font that caused havoc. I'm back to where I started now. The fonts still look different from the ones in Windows. I am positive they are the same font type, but I think that my linux gui is giving it more anti-aliasing than windows, thus making them look smoother, and unfortunately a little less crisp...
Spacce
Suse has a font installer in the Control Center
just point it to your hmm.gif/windows/fonts directory and it uploads them
peekj
Wish I'd looked there before sad.gif The font installer doesn't work anymore now, the font service (or something) has unexpectedly died.
Shadrack
Follow this guide:

http://corefonts.sourceforge.net/

really helped me out a lot! thumbs_up.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.