Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian User (http://www.linux-archive.org/debian-user/)
-   -   iceweasel 3 font size (http://www.linux-archive.org/debian-user/129649-iceweasel-3-font-size.html)

Paul Scott 07-22-2008 06:34 PM

iceweasel 3 font size
 
Florian Kulzer wrote:
> On Fri, Jul 18, 2008 at 18:38:08 -0700, Paul Scott wrote:
>
> [...]
>
>
>> That page looks fine here on IW3 but it still renders fonts too large on
>> some other sites.
>>
>
> What do you mean by "too large" - "larger than in iceweasel 2",
Larger than FF2 and Konqueror 3.5.9 for sure. I don't think I've tried
going back to IW2.
> or did
> you really check the absolute font size? Which sites are we talking
> about?
>
http://compmed.com/index.php (site I am building still seen as under
construction by public). I did notice that I am using <h1> tag for this
and I don't specify the font. I also notice that Konqueror gives me a
sans-serif font while other browsers give me serif, including IE6 on
another machine which doesn't show the size problem. I'm guessing that
specifying the <h1> will probably make the problem go away but I think
this thread is still worth following.
> Please post the output of these commands:
>
> xdpyinfo | grep 'dimens|resol'
>
paul@bliss:~$ xdpyinfo | grep 'dimens|resol'
dimensions: 1280x1024 pixels (339x271 millimeters)
resolution: 96x96 dots per inch

> xrdb -query | grep Xft
>
paul@bliss:~$ xrdb -query | grep Xft
Xft.hinting: 1
Xft.hintstyle: hintfull

> grep 'font.|css.dpi' ~/.mozilla/firefox/*.default/prefs.js
This one may not be accurate. I'm not sure if this is where the config
info is stored because of a long and varied browser installation
history. "locate prefs.js" shows a lot a number of possibilities like
/usr/local/firefox...

paul@bliss:~$ grep 'font.|css.dpi' ~/.mozilla/firefox/*.default/prefs.js
user_pref("font.minimum-size.x-western", 10);
user_pref("font.size.variable.x-western", 18);
user_pref("webdeveloper.edit.font.size", 12);
user_pref("webdeveloper.generated.content.font.siz e", 12);


Thanks very much,

Paul


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Paul Scott 07-22-2008 06:48 PM

iceweasel 3 font size
 
May be repeated. Previous was sent from unsubscribed address.

Florian Kulzer wrote:
> On Fri, Jul 18, 2008 at 18:38:08 -0700, Paul Scott wrote:
>
> [...]
>
>
>> That page looks fine here on IW3 but it still renders fonts too large on
>> some other sites.
>>
>
> What do you mean by "too large" - "larger than in iceweasel 2",
Larger than FF2 and Konqueror 3.5.9 for sure. I don't think I've tried
going back to IW2.
> or did
> you really check the absolute font size? Which sites are we talking
> about?
>
http://compmed.com/index.php (site I am building still seen as under
construction by public). I did notice that I am using <h1> tag for this
and I don't specify the font. I also notice that Konqueror gives me a
sans-serif font while other browsers give me serif, including IE6 on
another machine which doesn't show the size problem. I'm guessing that
specifying the <h1> will probably make the problem go away but I think
this thread is still worth following.
> Please post the output of these commands:
>
> xdpyinfo | grep 'dimens|resol'
>
paul@bliss:~$ xdpyinfo | grep 'dimens|resol'
dimensions: 1280x1024 pixels (339x271 millimeters)
resolution: 96x96 dots per inch

> xrdb -query | grep Xft
>
paul@bliss:~$ xrdb -query | grep Xft
Xft.hinting: 1
Xft.hintstyle: hintfull

> grep 'font.|css.dpi' ~/.mozilla/firefox/*.default/prefs.js
This one may not be accurate. I'm not sure if this is where the config
info is stored because of a long and varied browser installation
history. "locate prefs.js" shows a lot a number of possibilities like
/usr/local/firefox...

paul@bliss:~$ grep 'font.|css.dpi' ~/.mozilla/firefox/*.default/prefs.js
user_pref("font.minimum-size.x-western", 10);
user_pref("font.size.variable.x-western", 18);
user_pref("webdeveloper.edit.font.size", 12);
user_pref("webdeveloper.generated.content.font.siz e", 12);


Thanks very much,

Paul



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Florian Kulzer 07-22-2008 09:11 PM

iceweasel 3 font size
 
On Tue, Jul 22, 2008 at 11:34:52 -0700, Paul Scott wrote:
> Florian Kulzer wrote:
> > On Fri, Jul 18, 2008 at 18:38:08 -0700, Paul Scott wrote:
> >
> > [...]
> >
> >> That page looks fine here on IW3 but it still renders fonts too large on
> >> some other sites.
> >
> > What do you mean by "too large" - "larger than in iceweasel 2",
> Larger than FF2 and Konqueror 3.5.9 for sure. I don't think I've tried
> going back to IW2.

So it could be that Konqueror and FF2 are wrong.

> > or did
> > you really check the absolute font size? Which sites are we talking
> > about?
> >
> http://compmed.com/index.php (site I am building still seen as under
> construction by public). I did notice that I am using <h1> tag for this
> and I don't specify the font. I also notice that Konqueror gives me a
> sans-serif font while other browsers give me serif, including IE6 on
> another machine which doesn't show the size problem.

Each browser should let you configure whether the default is serif or
sans-serif. If you don't specify the size then it should be set to the
configured user preference.

> I'm guessing that
> specifying the <h1> will probably make the problem go away but I think
> this thread is still worth following.

The usual recommendation is to specify all font size in relative units,
e.g. 100% for the normal font, 120% for h1, etc. Then every one of your
visitors will see bigger or smaller fonts according to their own
preferences, assuming they have all configured their browsers correctly.

As far as your own test browsers of choice are concerned, I would make
sure that they all have the right idea about the dimensions of your
screen (indirectly, from the correct DPI setting). That's why I asked
you about the output of those commands, so here we go:

> paul@bliss:~$ xdpyinfo | grep 'dimens|resol'
> dimensions: 1280x1024 pixels (339x271 millimeters)
> resolution: 96x96 dots per inch

That looks good, assuming your screen is really 339 mm wide and 271 mm
high.

> > xrdb -query | grep Xft
> >
> paul@bliss:~$ xrdb -query | grep Xft
> Xft.hinting: 1
> Xft.hintstyle: hintfull

If your iceweasel fails the absolute size test that I propose below then
you can try if

echo "Xft.dpi: 96" | xrdb -merge

improves the situation. You have to restart iceweasel after that command
to see its effect. (The setting can be added to ~/.Xresources to make it
persistent for all future X sessions.)

[...]

> paul@bliss:~$ grep 'font.|css.dpi' ~/.mozilla/firefox/*.default/prefs.js
> user_pref("font.minimum-size.x-western", 10);
> user_pref("font.size.variable.x-western", 18);
> user_pref("webdeveloper.edit.font.size", 12);
> user_pref("webdeveloper.generated.content.font.siz e", 12);

OK, you do not set layout.css.dpi, so iceweasel should use the system
DPI setting. Your default font is 18 pt, therefore your normal text
should be 18/72 inches (6.4 mm) tall on the screen. Unfortunately I
don't know to which of the various font height measures[1] this refers,
so I use this simple test page to check my browser's rendering:

<html>
<body>
<head>
<meta http-equiv="Content-Type" content="text/html"/>
<title>DPI test</title>
</head>
<body>
<hr style="border: none; background-color: black; width: 150mm; height: 150mm" />
<p>This box should be 150mm x 150mm.</p>
</body>
</html>

This test page should display a square with 150 mm sides.

[1] http://en.wikipedia.org/wiki/Typeface#Font_metrics

--
Regards, | http://users.icfo.es/Florian.Kulzer
Florian |


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


All times are GMT. The time now is 08:24 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.