Forum OpenACS Q&A: Re: Printing with printer control fonts from HTML

Collapse
Posted by Brian Fenton on
Hi Patrick,
thanks for the reply. Yes, I've narrowed it down a little bit more since. It appears the browser (IE 5.5 on Windows 2000) can't seem to see that font. The following page displayed the letter A using fantasy font (it ignored the contol font):

<html>
<head>
</head>
<body>
<FONT FACE="control, fantasy" size="9.5">A</font>
</body>
</html>.

I tried using a media=print style as follows but that too printed in the fantasy font when I printed the page out:

<html>
<head>
<style>
h1 {
  font-size : 9.5pt;
  font-family : fantasy;
}
</style>
<style media="print">
h1 {
  font-size : 9.5pt;
  font-family : control;
}
</style>
</head>
<body>
<h1>A</h1>
</body>
</html>

I've also since verified that text is indeed printed as text, not as an image as I originally thought.

Any other suggestions?

Collapse
Posted by Jeff Davis on
Brian, have you tried printing to a file and
seeing if you can put the literal codes sent
to the printer in the page?

My guess is this won't work either but it's worth a try...

Collapse
Posted by Brian Fenton on
Hi Jeff,
Yes I've tried that. I just get a print-out of gibberish.

I think the key to the problem is persuading IE to use the control font. Any idea how I might do that?