ProvideX V8.20 > Language Reference > 5. Mnemonics
595
'CP' Mnemonic
       Condense Print for Screen
GUI Display/Printer or Character Display/Printer
Description
Use 'CP' to reduce the window and region size, and/or change the font to condensed
print. To restore the screen and font to regular size, use the 'SP' Mnemonic, p.638. In
ProvideX, 'CP' or 'SP' affect only the data that follows the mnemonic.
On GUI devices, the 'CP' mnemonic will output using a font size that is approximately
5/8ths the size of the current default text font.
Example
10 open(1)"LP"
20 print (1)"NORMAL"+'CP'+"COMPRESSED"+'SP'+"NORMAL"
30 close(1)
If the example above is run in ProvideX, the word COMPRESSED would be in condensed
print, and NORMAL would be in standard print. (In other Business Basics, the font for the
complete line is affected and, for this example, would be in standard print.)
'CPI' Mnemonic
     Logical Characters per Inch
GUI Printer
Format
'CPI'(chars)
Where:
chars
Logical characters per inch. Numeric expression.
Description
Use 'CPI'(chars) to set the logical CPI (characters per inch) for printing in graphics
mode, where (as a rough guide to equivalent sizes):
Point size -12 = 6 LPI, 10 CPI
Point size -10 = 7.2 LPI, 12 CPI
Point size - 7 = 10 LPI, 16 CPI
For more information refer to 'LPI' Logical Lines / Inch, p.616, and the TXH( )
Function, p.542, and the TXW( ) Function, p.543.
Example
With both channels (30) and (1) open:
0060 PRINT (30)'CPI'(120/7.5),'LPI'(6),Data$
0070 PRINT (1)'CPI'(16),Data$20 print