×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Bitmap font

Bitmap font

Bitmap font

(OP)
Hello,

I learn that there is only one bitmap font installed in HP-printers, namely "Line Printer" fontface. And only with bitmap fonts, both pitch (cpi) and height parameters are valid. However, when selecting the font with
<ESC>(s0p12h12v0s0b0T
whatever you put as height value it is always ignored. Can somebody tell me why?

RE: Bitmap font

Understand that the font command you are issuing only SELECTS a font from those available in the printer. It does not create it or somehow modify an existing font to your specification.

Generally, fixed pitch fonts are SELECTED by their pitch. I think that both the height and pitch are considered only to resolve an ambiguity between two fonts.

If you don't get a 12h12v font, then there probably insn't one available.

Read the detailed account on fonts in the PCL5 Tech Reference.





Jim Asman

RE: Bitmap font

Jim is quite correct; you cannot create a font, only select what is there; the printer will choose the closest match to the specified and/or defaulted font selection characteristics, in a well-defined order of precedence.

The bitmap LinePrinter font is only available in one fixed size: 8.5 point, 16.67 characters-per-inch. Bitmap fonts are selected by specifying both heoght and pitch, so the LinePrinter font is selected using:

{esc}({ID}{esc}(s0p8.5v16.67hv0s0b0T

where:

{esc} represents the escape character (0x1b);
{ID} represents the required symbol set identifier (there are about a dozen available symbol set variants with the LinePrinter font; 0N is the most useful in Western environments - it matches the ISO 8859/1 coded character set).

All the other standard resident fonts on modern LaserJet devices are scalable.

For the fixed-pitch scalable fonts (Courier and LetterGothic), the required size is selected by specifying a pitch value.

For the remaining (proportionally-spaced) scalable fonts, the required size is selected by specifying a height (pointsize) value.

RE: Bitmap font

(OP)
Once more thank you for the detailed information.

All the best

Jörg

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close