Ticket #764 (new defect)

Opened 2 years ago

Last modified 2 years ago

using firefox to print pages from a wikkawiki on a laser printer uses a VERY tiny font

Reported by: osde8info Owned by: unassigned
Priority: normal Milestone: blue-sky
Component: layout Version: 1.1.6.4
Severity: normal Keywords: css font print printing
Cc:

Description

possibly because CSS font size is specified in CSS in pixels px instead of points pt !

body {

font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 20px; color: #000000; background-color: #F8F8F8;

}

Change History

Changed 2 years ago by osde8info

actually there a lot of px instead of pt font sizes

i've changed all mine as follows

# grep font-size wikka.css

font-size: 11pt; font-size: 11pt; font-size: 11pt; font-size: 80%; font-size: 11pt; font-size: 11pt; font-size: 11pt; font-size: 11pt; font-size: 11pt; font-size: 11pt; font-size: 90%; font-size: 100%; font-size: 11pt; font-size: 11pt; font-size: 115%; font-size: 90%; font-size: 80%; font-size: 95%; font-size: 95%; font-size: 90%; font-size: 10pt; font-size: xx-large;

.recentchanges {font-size: 0.9em;} .smaller {font-size: smaller;} .smallprint {font-size: 0.8em; color: #777; padding-right: 0.5%; text-align: right;}

font-size: 70%; font-size: 70%; font-size: 95%; font-size:8pt; font-size: 95%; font-size: 85%; font-size: 85%; font-size: 85%; font-size: 90%; font-size: 120%; font-size: 11pt;

.editornamecss { background-color:#CCCCFF; font-size: 11pt; padding: 0 10px; }

Changed 2 years ago by osde8info

maybe related to a firefox 2.0.0.13 bug ?

firefox 2.0.0.13 uses you default screen font-size (ie 14px) for printing pages !

see pictures at

 http://osde-info.vox.com/library/post/sometimes-webpage-font-sizes-are-very-tiny-when-you-print-them.html

Changed 2 years ago by JavaWoman

  • component changed from unspecified to layout

Printing should be done via a specially-designed printer stylesheet, which should use only units appropriate for printing (pt, maybe percentages); px is designed for screen.

Of course for nice printing more could be done than just changing units. ;)

Note: See TracTickets for help on using tickets.