LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Weird Firefox font problem (https://www.linuxquestions.org/questions/linux-general-1/weird-firefox-font-problem-349121/)

oneandoneis2 08-02-2005 02:59 AM

Weird Firefox font problem
 
Amongst other things, I use my webpage to aggregate RSS feeds - courtesy of MagpieRSS. But yesterday, the PHP page went weird: The font shrank.

On every page of my website, I don't define fonts - just leave it up to the browser's default. Every other page still has normal-sized, readable fonts. The only one that's changed is my RSS aggregating PHP page. And I can't find any reason why!

Here's a sample of a normal webpage, along with the HTML headers:
Normal
Code:

<HTML>
<BODY bgcolor="#FFFFFF" VLINK="#OOOOFF" ALINK="#FFOOOO">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<TITLE>Linux @ OneAndOneIs2</title>
<P><IMG SRC="http://linux.oneandoneis2.org/tux.png"><IMG SRC="http://www.oneandoneis2.org/Pix/1+1=2.png">
<H1>Linux @ OneAndOneIs2</H1>
<FONT SIZE=2><P>(The geeky stuff)</FONT>

<P>I first became. . .

And here's a sample of my news page, plus the HTML:
Abnormal
Code:

HTML>
<meta http-equiv="refresh" content="600">
<BODY bgcolor="#FFFFFF" VLINK="#OOOOFF" ALINK="#FFOOOO">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<TITLE>News</title>
<TABLE border=0 width=100%>

<TR><TD colspan=2>. . .

As you can see, nothing whatsoever relating to fonts in either. The fonts are still the same when viewed from Firefox in Windows, it's only Firefox on my Linux PC that's showing the fonts weirdly, and only on this one page.

Any ideas what's causing this?

PeterRJG 08-02-2005 03:54 AM

To hazard a guess, it's because you've stated the <FONT> tag in the first example, along with a size. This gives FF a reference.

The second example has no font tag or CSS suggestions, so FF reverts to a default.

BTW, <FONT> tags are 1996, time to use CSS. :)

oneandoneis2 08-02-2005 04:10 AM

I know, I know, CSS is on my list of things to learn when I get the time :)

However, while there is a <FONT> in that first page (Which I'd forgotten about, or I'd have picked a different page :) ) there aren't any in the other pages which also render normally. . . And including a <FONT> in the abnormal page didn't fix anything - the font was either the current too-small size or a too-bulky larger font. Not my usual default font, which it always was before yesterday.

Odd, huh?

oneandoneis2 08-02-2005 04:13 PM

I just tried something else. I hoped it wouldn't work, but it did: I copied the html source generated by the PHP page & pasted it into an html file.

So, identical source, the only thing that changed was the three-letter extension at the end of the file.

Font displays perfectly in the HTML version. The PHP version is still nasty.

WTF??


All times are GMT -5. The time now is 08:54 AM.