|
Posted by Roger Shrubber on October 7, 2004, 1:16 am
Please log in for more thread options
I know HTML was never designed to be WYSIWYG, but with CSS, there is
much greater control over coordinates and dimensions. So I would
expect that a specific piece of text, with a specific font, style, and
size specified in pixels, typeset into a box with a width specified
in pixels, should be identical in both screen and print versions.
This is not the case at least with Internet Explorer 6.
Below is a sample (a pathological case, but it shows the problem).
The number of i's which fit on one line is quite different in screen
and print versions in IE 6 (easily seen with Print Preview).
Is there some way to avoid this difference?
Thanks in advance!
<html>
<style>
#text
{
width: 100px;
background: cyan;
font-family: Verdana;
font-weight: normal;
font-size: 16px;
}
</style>
<body>
<div id="text">
i i i i i i i i i i i i i i i i i i i i i i i i
i i i i i i i i i i i i i i i i i i i i i i i i
i i i i i i i i i i i i i i i i i i i i i i i i
</div>
</body>
</html>
|
|
Posted by Mark Tranchant on October 7, 2004, 9:49 am
Please log in for more thread options
Roger Shrubber wrote:
> I know HTML was never designed to be WYSIWYG, but with CSS, there is
> much greater control over coordinates and dimensions. So I would
> expect that a specific piece of text, with a specific font, style, and
> size specified in pixels, typeset into a box with a width specified
> in pixels, should be identical in both screen and print versions.
> This is not the case at least with Internet Explorer 6.
>
> Below is a sample (a pathological case, but it shows the problem).
> The number of i's which fit on one line is quite different in screen
> and print versions in IE 6 (easily seen with Print Preview).
IE6's printing is particularly poor. Firefox isn't much better. Opera
allegedly has the lead in print capability.
What, in your opinion, is 100px on the paper?
--
Mark.
http://tranchant.plus.com/
|
|
Posted by Alan J. Flavell on October 7, 2004, 1:18 pm
Please log in for more thread options On Thu, 7 Oct 2004, Mark Tranchant wrote:
> What, in your opinion, is 100px on the paper?
That depends on whether you intend px to stand for pixels
or for CSS px units!
|
|
Posted by Chris Morris on October 7, 2004, 3:25 pm
Please log in for more thread options > On Thu, 7 Oct 2004, Mark Tranchant wrote:
> > What, in your opinion, is 100px on the paper?
>
> That depends on whether you intend px to stand for pixels
> or for CSS px units!
If it was CSS px units, shouldn't the browser ask the user how long
their arms are and rescale accordingly if it differs from the
CSS-specified arm length of 28 inches?
--
Chris
|
|
Posted by Roger Shrubber on October 7, 2004, 7:16 pm
Please log in for more thread options > Roger Shrubber wrote:
> > I know HTML was never designed to be WYSIWYG, but with CSS, there is
> > much greater control over coordinates and dimensions. So I would
> > expect that a specific piece of text, with a specific font, style, and
> > size specified in pixels, typeset into a box with a width specified
> > in pixels, should be identical in both screen and print versions.
> > This is not the case at least with Internet Explorer 6.
> >
> > Below is a sample (a pathological case, but it shows the problem).
> > The number of i's which fit on one line is quite different in screen
> > and print versions in IE 6 (easily seen with Print Preview).
>
> What, in your opinion, is 100px on the paper?
Thanks for your reply Mark.
I don't really care what 100px becomes on the paper, as long as what is
printed is very nearly congruent (in the mathematical sense) with what is
on the screen* - that is, it would appear to be WYSIWYG printing to the
user unless he gets out a ruler and starts measuring things. Text that
typesets differently when printed would clearly break this requirement,
especially if it wraps over more lines, which could result in a dud print
with parts cut off, which could in turn result in unhappy users.
As nobody has offered a solution yet, I expect the answer to the original
question may be, "it is not possible to avoid this problem". HTML is not
an ideal medium for attempting WYSIWYG printing, but in this case it is
mandated for other reasons.
Thanks again Mark.
* The screen display consists of a rectangle of a specified size in pixels,
with all coordinates and dimensions given in pixels. So differences in
user window size and font preferences should have no effect on the screen
display, provided the browser honors the recommendations.
|
| Similar Threads | Posted | | Odd printing in FF | July 8, 2006, 4:24 pm |
| Printing Webpages | May 12, 2005, 2:23 pm |
| Printing tables | December 26, 2007, 12:48 pm |
| Is there such a thing as printing to "%" scale? | August 2, 2004, 3:29 pm |
| Table printing trouble | April 23, 2005, 7:08 pm |
| Printing web pages that use containers | August 23, 2006, 10:50 am |
| Using "Prince" For XHTML/CSS Printing | June 18, 2007, 12:57 pm |
| Printing large images | November 5, 2007, 8:08 am |
| html skip page during printing | January 12, 2005, 6:49 am |
| Force Page-break when printing | February 2, 2006, 11:44 am |
|