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.
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
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
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.
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”…
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.
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)…