I see nobody's answered you yet, Philip, so I'll jump in with me
welly-boots on...

Here's what works for me, with Firefox on the Macintosh. I've only
tried writing it to Preview, and to PDF, and not actually printed it,
but I anticipate no different results. With a bit of imagination,
something similar should work with Firefox on Windows too...

1. Make sure you've got APL385 Unicode installed. Get it here:
http://vector.org.uk/resource/apl385.ttf

2. CHOOSE MENU Firefox > Preferences... (Mac), or maybe it's  > Options... (Win)

CLICK TAB: Content.
----You should see:

Default font: <whatever> ------------click button: [Advanced]
----You should see a dialog box, which you should set up as follows:

Fonts for:              Western

Proportional:   Sans Serif               Size: 16
Serif:               Times
San-serif:              Helvetica -----------------------------(or maybe
you'd use Arial under Windows)
Monospace:    APL385 Unicode     Size: 16

UNCHECK CHECKBOX: "Allow pages to choose their own fonts, instead of
my selection above"

Exit Preferences... (/Options...) and try printing a page.

----

Once you've printed a wiki page, remember to set it all back how it
was, for printing other websites' pages, or at least reset this
option:
CHECK CHECKBOX: "Allow pages to choose their own fonts, instead of my
selection above."

Let us all know if it works for you.

----

BTW: If you inspect the html source of the J wiki page (Command+U on
the Mac, probably Ctrl+U under Win) you'll see...

<link rel="stylesheet" type="text/css" charset="utf-8" media="all"
href="/moin_static180/modernized/css/common.css">
<link rel="stylesheet" type="text/css" charset="utf-8" media="screen"
href="/moin_static180/modernized/css/screen.css">
<link rel="stylesheet" type="text/css" charset="utf-8" media="print"
href="/moin_static180/modernized/css/print.css">
<link rel="stylesheet" type="text/css" charset="utf-8"
media="projection"
href="/moin_static180/modernized/css/projection.css">

(note the magic word: media= "...")

...which suggests to me that the wiki website is offering Firefox a
different CSS to use for screen and print (...and even projector!).
So it's not really Firefox's fault.

If I inspect the CSS in question:
http://www.jsoftware.com/moin_static180/modernized/css/print.css
it doesn't look very helpful to me, specifying as it does the
following for <pre> (...implementing a MoinMoin code block)...

pre {
        font-size: 10pt;
}

as against its counterpart in:
http://www.jsoftware.com/moin_static180/modernized/css/screen.css

pre, tt, textarea {
font-family: APL385 Unicode, monospace;
}

One solution, if we all ask for it nicely, is for JSoftware to amend
/print.css to give APL385 Unicode an honourable mention. (Anyway, why
_do_ print fonts have to be different from the screen fonts,
especially for code-blocks?)

But surely the whole idea of CSS was originally that you'd be able to
override the website's version with a local version? And that may be
the slickest solution -- if someone cleverer than me can tell me how
(best) to do it... and that isn't what Firefox does to implement my
recipe as given above.

Ian



On Wed, Nov 17, 2010 at 6:06 PM, Philip A. Viton <[email protected]> wrote:
>
> Can anyone tell me how I could make documents on the wiki print
> "nicely" in Firefox? Using either Courier New or Lucida Sans
> Typewriter as the fixed-width font, the spacing seems all wrong: some
> letters crunch up against each other, others are spread out.  Is
> there a soltuion?
>
> ------------------------
> Philip A. Viton
> City Planning, Ohio State University
> 275 West Woodruff Avenue, Columbus OH 43210
> [email protected]
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to