On Sun, Jul 22, 2007 at 01:54:57AM -0500, Russell L. Harris wrote:
> * ArcticFox <[EMAIL PROTECTED]> [070722 00:35]:
> >
> >> My web site includes links to documents in PDF format.  Because of
> >> length, the documents are set in a 10-point font, with footnotes in an
> >> 8- or 9-point.
> >>
> >> I am attempting to accommodate visitors with impaired vision, by
> >> generating a HTML version of each PDF document, in order to enable a
> >> visitor to enlarge the type via the browser.
> >>
> >> But sometimes a visitor needs to be able to print out hardcopy for
> >> reading off-line.  I do not know to specify the font size used in the
> >> print version of a HTML document.  What is the mechanism?  Does a
> >> browser access a default style sheet for printing?
> >>
> >> Can someone point me in the right direction?
> >>
> > Assuming you are talking about wanting to print the HTML version of the 
> > page, include a snippet of CSS with the '@media print' rule in it in the 
> > <head> of the document. If you don't use CSS anywhere else in the document 
> > the following should be all you need (test it however, to ensure that it 
> > works as intended.)
> >
> > <style>
> > @media print {
> > body { font-size:xx; }
> > }
> > </style>
> >
> > Replace 'xx' with the size you desire. I suggest starting with '2em' and 
> > working up from there.
> 
> Many thanks, Arctic and all.  This approach works well.  You have
> saved me much time.
> 
> It turns out that HeVeA has added a 
> 
>     <STYLE type="text/css">
> 
> section to the head of the HTML       document, so I inserted the lines
> 
>     @media print {
>     body { font-size:2em; }
>     }
> 
> just before the </STYLE> tag.
> 
> Experimenting, I found that "1em" produces a nearly-normal font, "2em"
> produces a very large font, and that "1.5em" produces a font about the
> size I think that most visually-impaired users shall find useful.

Be sure to check this with your users' browsers, though.  I currently
have the current irritation with Iceweasel:  Although my printed HTML
page contains a line
   <link href="print.css" rel="stylesheet" media="print">
Iceweasel can be in one of two possible states.  In one life is good and
the font size commands in print.css are obeyed, but in the other
(reached when a session is resumed rather than restarted), the style
sheet is read but the font size commands are not obeyed.

I guess this is tangential, but my point is the gap between "should" and
"does".

Mark


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to