CSS and Linux?

Hey guys, I have a question: what’s the point of having CSS when Linux overrides it?

I’m just wondering because [as I posted before] Linux doesn’t seem to render web pages properly - at least not according to CSS coding.

For example, my sites are all coded in valid XHTML 1.1 Strict coding, and display perfectly in all browsers on Windows and Macintosh. I have just installed openSUSE on my PC and have come to find that some parts of my site designs break, because Linux seems to override the fonts on web pages to default fonts that are set.

I’m wondering, is there any tweak to this? Is there any way I can have Linux web browsing applications render web pages according to CSS? IE, I set fonts in CSS on my web pages for a reason. I don’t want to override them…it makes sites look bad, including this one. :

I don’t see what Linux has to do with it. Web page rendering is a browser issue. Firefox on Linux will render the same as Firefox on Windows, fonts and other local issues permitting.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Linux is an operating system… not a browser. The OS will display (to
the hardware) whatever you and your applications tell it to. It may be
that the fonts you have specified are not available on Linux and that
could be an issue, but in that case it would help if you used fonts that
were universally available to anybody regardless of platform… this
usually means using fonts that are not encumbered by patents.

Linux doesn’t care about CSS… it doesn’t even know what CSS is.
Firefox/Operat/Konqueror should (and do) care about CSS but if you
demand the use of ‘SomeRandomFont’ that nobody has or
‘SomeUnavailableFont’ that nobody (in Linux) can use this can be
resolved by using a free font in your specifications.

Good luck.

gm-egs wrote:
> Hey guys, I have a question: what’s the point of having CSS when Linux
> overrides it?
>
> I’m just wondering because [as I posted before] Linux doesn’t seem to
> render web pages properly - at least not according to CSS coding.
>
> For example, my sites are all coded in valid XHTML 1.1 Strict coding,
> and display perfectly in all browsers on Windows and Macintosh. I have
> just installed openSUSE on my PC and have come to find that some parts
> of my site designs break, because Linux seems to override the fonts on
> web pages to default fonts that are set.
>
> I’m wondering, is there any tweak to this? Is there any way I can have
> Linux web browsing applications render web pages according to CSS? IE, I
> set fonts in CSS on my web pages for a reason. I don’t want to override
> them…it makes sites look bad, including this one. :
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIcBAEBAgAGBQJJqBQsAAoJEFl00+q2r0YpggEP/2RIrUAukjCoAJzzG02Yw7Rp
U5QNRqZ1qpC5OBrfnlY5Dj9B4I+8QPJzKmcw5+3+l5vX/iqHpDQPGA7Fitm5UlBV
/iy/LEoncttg3/+lsDGpua/6wamsP/z4nJanssSEHLZmfFplWPjJv/YlLa60k1y2
hy4MqO9SLSlapodTC1LXDzaDBjE0CCvJohsDMc1ogyPQDA/NzzbqtbFDw0zAU0l4
bLrtDOtt7CUqpZOMjC3xv6TF/MZSdSQrV5bHoAeLnMtco6IVHI93+Ei0x4yzDeJl
Qq5ZmgIGfvX65AvsbL4eeJnSdTtmOL2Iim2twBB9rXn9lKjTkCtuORcKzFTLxlKm
DA7oYr+uCpoV0AgIkoqjUh/D81TDhDweqdQBW9wy0msz+S7VZbi8YcNOEUgO2tX1
IWGnw+9DFWD/FeEq3Wf6uBw/GhuUNNHEfwqxRPD0jYNl7pGqyq3LCw/f0BrkzDyF
oFBuSHFwNecz/PsMxMWfDGzTPsq5/Z44aoWUMLKUTNse4PeTWlQ9fmvY3QupeAKA
kiFukaqOHOXhkSEyngJtQL7NiszCjq6oJn+clIc2YZQRRA3hpC9cT3zLmwOlILe5
UmuHVh+5rRCl0CeGFt3YgZ/aP+W7yzMDLwmzu1FpJmQL0LHKqeLIwedAHqc188hF
sENyZO37CjZIbdrZMITK
=G7jE
-----END PGP SIGNATURE-----

Well I’m using both Opera and FireFox on my openSUSE installation and it’s showing fonts wrong.

It doesn’t show Arial or Tahoma correctly. How can I correct this? How do I configure the browsers to use the correct directory for fonts?

I have the fonts installed in this directory:
usr/share/fonts

Also, noticed I don’t have Tahoma font as well…how/where can I find this and how do I install a single font?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Every user can have their own fonts… just drop the appropriate font
file (often ending in .ttf) in /home/youruser/.fonts, (aka ~/.fonts) and
it should be available. The problem is that if you don’t use fairly
common fonts you need to push out those fonts yourself somehow to users.

Good luck.

gm-egs wrote:
> Well I’m using both Opera and FireFox on my openSUSE installation and
> it’s showing fonts wrong.
>
> It doesn’t show Arial or Tahoma correctly. How can I correct this? How
> do I configure the browsers to use the correct directory for fonts?
>
> I have the fonts installed in this directory:
> usr/share/fonts
>
> Also, noticed I don’t have Tahoma font as well…how/where can I find
> this and how do I install a single font?
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIcBAEBAgAGBQJJqB4HAAoJEFl00+q2r0YpUqIP/R1PQpc1Ki4HUFIoCutiopAB
PEmdBBijTlPWTZ9XiHeMG8GfnKyX9xP+x2/hcpCBz6LxCtWLObMRBdEWDCFgPlhD
gf3IJgKuJZmbSnklFZmyYll2+BClIv/ZRUdQVNhrGvC3o39R3TsfU5x3ctqb+Pbc
5ap9DtricYBsWpeD20KIi+oXo3j4b0zD4rJ9fjq9+15zsijP5RUp4TG8wWXeTfnK
mOcSnuFCxfVolPNrgkabV3TI9NMjX2S9TTGfbzB2Ob/F5zlEB5epgLl+M0UoDX4j
HXOumNOpUQheRe9a6rTPKTrUS5qNE++uXU+sQ1kku7cxveeeCIPBNb3pLj5C9ZPB
Rr3eVT4O6+v3MrD/1CYdf9zXoXW28DfyT5cAT16IW4+LJFGPrh9N0M7UTKmNKpLl
MXOMMsKT6ms1Oa1xwKaBkwbBkGbuKWFqz/ncQvf3gAVJaGxZdnHMVVHLV6dlAzoI
kabFKM7kesW5053oi0ov6yl4fXb4FRnyr+OG5VdvkszFxYAOPjVlTCbeo1EeYyg6
a1pcXcKCvpbXRdSUgkWH/mgtokavY9TlDGD8CC0hFNgfWVrg2BHhG/UQoWP0t40H
y4d/LONscbO+eEoRFX8r41ehETCCUK7kKhkXF0Yrjo8IuJv9JVF+3bDCKTKhfPDf
hTFf0xo7rNFATWVZwhUs
=2ZdR
-----END PGP SIGNATURE-----

Hi
If you have a windows OS install you can grab the two tahoma ttf files
and copy them over into your /usr/share/fonts/truetype directory and
run fonts-config as root (or sudo) user. Then as your user run fc-cache
to update your user font cache.


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (i586) Kernel 2.6.27.15-2-default
up 1:08, 1 user, load average: 0.64, 0.39, 0.38
GPU GeForce 6600 TE/6200 TE - Driver Version: 180.35

I think there’s a package that will download and install the M$ Truetype fonts: fetchmsttfonts. Arial is in there, don’t know about Tahoma.

Should you be writing web pages that depend on particular fonts, rather than say any sanserif font?

Hi,

What does it mean that they are not shown correctly?

Please post a piece of your CSS here. Screenshots also would be helpful to analyze this.

Bye

Erik

If you relied on fonts to keep the design in a certain way, then that’s a design flaw.

A user with poor vision that increases the font-size would get the same kind of errors?

Anyhow, browsers on linux don’t ignore CSS. They simply do as you informed them to do. Surely you provided a generic-font to fall back on in ‘font-family’ in case the ones infront of it aren’t present on the system?

afaik the little tray geeko (updater) should prompt you sometime to install a font-package containing a couple of MS fonts like Tahoma/Arial etc.
If you still have windows on your drive you can simply use the fonts from there as well. (In KDE4, ‘Start menu’> Desktop settings > Fonts )

> It doesn’t show Arial or Tahoma correctly. How can I correct this? How
> do I configure the browsers to use the correct directory for fonts?

if you correct it on YOUR machine, then STILL the rest of the world
is gonna see it “wrong” until you redesign your site to use fonts
available on every machine which might wanna look at your site…

THEN, you won’t have to fix YOUR machine to see it “right”…

see how that goes?


assistant

Okay, enough with the attacking please. My site is using Tahoma, which is the problem that I now found out. Please help me install it by replying in my thread here:
Help Installing a Font? - openSUSE Forums

And also, I am new to Linux so bear with me. I thought the basic fonts (Arial, Times New Roman, Tahoma, Courier, Courier New, Georgia, Comic Sans, and Trebuchet) were all basic fonts, or ones available on every operating system. I didn’t know only Windows was allowed to include these fonts…I just guessed since majority of sites utilize the fonts.

:o

This is not a font problem it’s a css problem use for example

font-family: Tahoma, Arial,  sans-serif;

That way if the os has Tahoma or Arial they will be displayed in that priority order
otherwise the os default sans will be displayed.

OK windows has the majority of the market but by using win fonts you are excluding mac and Linux

Read more here CSS: fonts
And 2 good articles
Digital Web Magazine - CSS Typography
10 Web Typography Rules Every Designer Should Know | Webdesigner Depot

/Geoff

gm-egs wrote:
> Okay, enough with the attacking please.

sorry you read it as an attack…

it was not intended to be an attack, but rather as a broad and
complete solution…

i (and others) have given you the answer a couple of times (fix the
web site so it is not dependent on Redmond to look “right”)…

but you persist in thinking the way to fix the ugly you see on your
site is to install Microsoft™ Fonts on your Linux machine (and all
the other machines in the world)…


assistant