Controlling font size....

M

Mike Minor

Hello all...

I have an application that creates a page in the browser which is meant to
be printed to the printer. If the user changes the view-text size setting of
their browser, then the font sizes change when the page is sent to the
printer. What is a one page report with a smaller text setting becomes a
two page report with the medium text setting. What is the easiest way to
control the font size so that variants in user's browser settings don't
affect the printed page.

TIA....

Mike Minor
 
M

Murray

Mike:

You cannot prevent the local viewer from changing the text display size, as
long as you leave your content as plain HTML text. If this is a big issue
then link to a PDF of the page and let them print that.
 
T

Tom Pepper Willett

http://www.netmechanic.com/news/vol5/design_no13.htm
--
===
Tom "Pepper" Willett
Microsoft MVP - FrontPage
---
About FrontPage 2003:
http://office.microsoft.com/home/office.aspx?assetid=FX01085802
FrontPage 2003 Product Information:
http://www.microsoft.com/office/frontpage/prodinfo/default.mspx
Understanding FrontPage:
http://msdn.microsoft.com/office/understanding/frontpage/
===
| Hello all...
|
| I have an application that creates a page in the browser which is meant to
| be printed to the printer. If the user changes the view-text size setting
of
| their browser, then the font sizes change when the page is sent to the
| printer. What is a one page report with a smaller text setting becomes a
| two page report with the medium text setting. What is the easiest way to
| control the font size so that variants in user's browser settings don't
| affect the printed page.
|
| TIA....
|
| Mike Minor
|
|
 
M

Murray

Oops - left the "this and the following" part out....

By setting the font in pixels, you can override the browser's font size
preferences. Even if a visitor tries to increase the text size in the
browser, he or she is out of luck.

That is, unless they know how to create their own system style sheet that
overrides the styles you selected. Experienced users with disabilities who
need large type and other's who rely on adaptive and assistive technologies
create their own style sheets all the time. Average visitors don't; they
probably don't even realize that it's possible, so you can more easily
control their viewing experience.
 
T

Tom Pepper Willett

Murray: I agree with you.

I, however, am *not* an advocate of controlling font sizes, as it is a
disservice to the visitor, IMO.

When I go to a site that has font sizes controlled, and I have difficutly
reading the page, I leave immediately.

My credo is: "don't try to control how I need to view a page".

Tom

| Oops - left the "this and the following" part out....
|
| By setting the font in pixels, you can override the browser's font size
| preferences. Even if a visitor tries to increase the text size in the
| browser, he or she is out of luck.
|
| That is, unless they know how to create their own system style sheet that
| overrides the styles you selected. Experienced users with disabilities who
| need large type and other's who rely on adaptive and assistive
technologies
| create their own style sheets all the time. Average visitors don't; they
| probably don't even realize that it's possible, so you can more easily
| control their viewing experience.
|
|
| --
| Murray
|
| | > Tom:
| >
| > By setting the font in pixels, you can override the browser's font size
| > preferences. Even if a visitor tries to increase the text size in the
| > browser, he or she is out of luck.
| >
| > This (and the following paragraph) are misleading at best, and wrong at
| > worst.
| >
| > I can override the size setting (in IE) without specifying a custom
| > stylesheet simply by using this option -
| >
| > All other modern browsers (Netscape, Safari, Mozilla, etc.) do not even
| > need this extra step.
| >
| > In other words, it's not possible, right?
| >
| >
| > --
| > Murray
| >
| >
| > | >> http://www.netmechanic.com/news/vol5/design_no13.htm
| >> --
| >> ===
| >> Tom "Pepper" Willett
| >> Microsoft MVP - FrontPage
| >> ---
| >> About FrontPage 2003:
| >> http://office.microsoft.com/home/office.aspx?assetid=FX01085802
| >> FrontPage 2003 Product Information:
| >> http://www.microsoft.com/office/frontpage/prodinfo/default.mspx
| >> Understanding FrontPage:
| >> http://msdn.microsoft.com/office/understanding/frontpage/
| >> ===
| >> | >> | Hello all...
| >> |
| >> | I have an application that creates a page in the browser which is
meant
| >> to
| >> | be printed to the printer. If the user changes the view-text size
| >> setting
| >> of
| >> | their browser, then the font sizes change when the page is sent to
the
| >> | printer. What is a one page report with a smaller text setting
becomes
| >> a
| >> | two page report with the medium text setting. What is the easiest way
| >> to
| >> | control the font size so that variants in user's browser settings
don't
| >> | affect the printed page.
| >> |
| >> | TIA....
| >> |
| >> | Mike Minor
| >> |
| >> |
| >>
| >>
| >
| >
| >
|
|
 
M

Murray

Tom:

Precisely. I feel the same way about sites that resize my browser viewport!
Or that play sound without an OFF button! 8)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top