There is no default %PCL.int as mnemonics for PCL printing in Caché.
So according to the link
you have to write it yourself.
But before this interesting exercise find a document on the control codes for your "low-end HP laser printer and a Brother laser"
Your description is just to vague to google for it. you depend on the type an level of PCL.
I tried and got 2.46 million hits on bold printing for Brother Laser.
This one looked useful but I didn't read all 531 pages and I don't know your printer version.
https://www.brother.com.au/pdf/support/controlcodes/PCL_Tech_Manual.pdf
This looked most useful:
Esc(s#B (27)(40)(115)#(66) <1Bh><28h><73h>#<42h>
This command designates the stroke weight of the primary font.
Esc)s#B (27)(41)(115)#(66) <1Bh><29h><73h>#<42h>
This command designates the stroke weight of the secondary font
# is an integer between –7 and 7. A value of 0 signifies a medium stroke weight, negative numbers signify
thin or light stroke weights and positive numbers signify bold stroke weights.
If you select a light or bold stroke weight the command will only have an effect if the font is available in one of the three font locations.
that means you should try first if your printer is covered:
set bold2on=$c(27,41,115)_7_$c(66)
set bold1off=$c(27,40,115)_0_$c(66)
set bold2off=$c(27,41,115)_0_$c(66)
;; let's test it
open prt use prt write #
write !,"test1 " , bold1on, "text with bold1on ", bold1off, "text with bold1off",!
write !,"test2 " , bold2on, "text with bold2on ", bold2off, "text with bold12off",!
write # close prt
from the description, it is not clear if 7 and 0 are characters or if this are binaries.
you may need to replace it with $c(7) and $c(0).
once you know the codes you may decide how to make use of it.
- Log in to post comments