Re: Font question



On Apr 27, 7:28 pm, Huub <"v.niekerk at hccnet.nl"> wrote:
Plain text doesn't have a font. The only way you could associate a
fond with a plain text file would be by settings on your print job or
print queue or printer.

A J. Gleixner asked: Where medium are you printing it to?

And by what mechanism on what OS?

I'm using Fedora 6 and a Perl-script reading from MySQL printing plain
text to a DeskJet520.
If plain text doesn't have a font, then how can I set this printer to
print the correct font? It seems to use PCL5, but I haven't been able to
find a way to use that from Perl.

Are you opening the printer directly as /dev/whatever or are you
sending the output via lpr? If you are using lpr then there are
probably switches you can use to specify the font to be used for pain
text.

I don't know which of the many lpr implementations available on Linux
Fedora will install by default.

If you are talking direct to /dev/whatever (or using lpr in raw mode)
I don't think there are any PCL modules as such in Perl but there's
nothing stopping you looking up the escape sequence in a PCL manual
and manually doing print("\e(s4099T") [1].

[1] That's untested. I just did a quick Google and glanced at the
following HP manuals:

http://h20000.www2.hp.com/bc/docs/support/SupportManual/bpl13210/bpl13210.pdf
http://lprng.sourceforge.net/DISTRIB/RESOURCES/DOCS/pcl5comp.pdf


.



Relevant Pages

  • Re: Word applies direct format on File open
    ... I think what's happening here is that you have TNR defined as the default ... font for Plain Text, but the plain text is coming in with Courier New as ... the draft font. ... But the formatting toolbar nevertheless ...
    (microsoft.public.word.docmanagement)
  • Re: Word applies direct format on File open
    ... text indeed appears as TNR 12. ... the formatting toolbar changes and reports ... I think the issue here is that the formatting for the Plain Text style is ... you can check the box for "Draft font" on the View tab ...
    (microsoft.public.word.docmanagement)
  • Re: Font Size Change on Messages to PC
    ... In addition to the plain text option, which to me is really going back to ... What I'm really trying to seek out is any information on how font size is ... As far as I can tell Entourage doesn't allow for many formatting options, ... It has to do with the way that monitors connected to Windows systems display ...
    (microsoft.public.mac.office.entourage)
  • Re: Word applies direct format on File open
    ... Graham, I hate to say this, but you're STILL missing the points. ... >If you open an HTM file as text then change the formatting to TNR, ... >By overriding the default font in the plain text style (which as you have ... The plain text style in my ...
    (microsoft.public.word.docmanagement)
  • Re: Setting up automounts, milters, IPv6, etc.
    ... Fedora ships the CA script ... You offer MD5 mech which is not configured. ... Fallback to mech PLAIN, which I guess succeeds. ... We can't know what you changed from default setup. ...
    (Fedora)