PxPlus User Forum

Twitter Twitter Twitter

Author Topic: How to change 'CP' and 'EP' settings on *PDF* output  (Read 1535 times)

PxPlus

  • Administrator
  • Diamond Member
  • *****
  • Posts: 1091
    • View Profile
How to change 'CP' and 'EP' settings on *PDF* output
« on: May 31, 2018, 10:36:31 AM »
The default behaviour in the system when issuing the 'CP' mnemonic is to take the current font (which normally is a 12 point font) and multiply by 5/8 rounding up. This results in a 8 point font thus you get:

->open (1) "*pdf*;file=c:\junk.pdf"
->print mxc(1)
 79
->print (1) 'cp',
->print mxc(1)
 119
->end

If however you want, you can override the 'CP' font (and the 'EP' font) using the MNEMONIC directive as in:

->open (1) "*pdf*;file=c:\junk.pdf"
->print mxc(1)
 79
->mnemonic (1) 'cp'="Courier,-7":132,60
->print (1) 'cp',
->print mxc(1)
 136
->

Using a point size of -7 will give you 136 columns.