Font Handling and Enhancements. Genicom P600, 5000 Series, GEK 00031B, GEK 00031B
Add to My manuals314 Pages
advertisement
Font Handling and Enhancements
ESC [ p1; p2 SP B GSM (Graphic Size Modification): This sequence modifies the vertical <p1> and horizontal <p2> size of expanded and oversize characters. When using expanded characters, the currently selected font style is used. Oversize uses its own distinct font style.
Parameter values are percentages of the normal size character, so values over 100 are needed for expansion. Expansion factors are obtained by dividing values by 100.
Example: A parameter value of 526 would be divided by 100 to produce an expansion factor of 5 (5X expansion). Values less than
100 are treated as 1X expansion.
X1: 0-199 (Default) X4: 400-499 X7: 700-799
X2: 200-299
X3: 300-399
X5:
X6:
500-599
600-699
X8: 800-UP
Mixed sizes within a line can be top or bottom justified depending on the Program Mode menu option (see VExOpt:Default and
VExOpt: Baseline).
The top of an expanded character is used as the starting point for vertical paper movement (line feed). The top or bottom of oversize characters can be used depending on the state of menu option
SETUP | FORMAT | MODIFY FORMAT |GENPRTOPTS |
GROUP 2 |Strap 13.
When this sequence is received with a value of 200 or more, expanded printing starts if the printer is in the text mode (not bar codes, oversize, etc.
Examples:
ESC [ ; 200 B
ESC [ 200 ; 200 B
ESC [ 800 ; 400 B
X1 Vertical
X2 Vertical
X8 Vertical
X2 Horizontal
X2 Horizontal
X4 Horizontal
During vertically expanded printing, blank lines (lines with no printed characters) are not expanded from the current lpi setting.
Decimal:
Hex:
BASIC:
27 91 p1 59 p2 32 66
1B 5B p1 3B p2 20 42
CHR$(27);"[<p1>;<p2>B";
GEK-00029B
31
5000 Series Programmer’s Manual
ESC [ p1 ; p2 SP G SPI (Spacing Increment): This sequence is used to set line spacing
(p1) and character spacing or pitch (p2). If the parameter is missing or zero, the spacing remains unchanged. In the native mode, p1 can range from 1 to 17,820 decipoints (24 inches). The printable area
(between the top and bottom margin) can not be exceeded. The range of p2 is dependent on the font and will be ignored if exceeded.
Examples of Spacing Values
LPI
3
4
6
8
LPI Spacing p1
(decipoints)
240
180
120
90
CPI
10
12
13.3
15
16.7
CPI Spacing p2
(decipoints)
72
60
54
42
36
Decimal:
Hex:
BASIC:
27 91 p1 59 p2 32 71
1B 5B p1 3B p2 20 47
CHR$(27);"[<p1>;<p2>G";
ESC [ p1 ; pn... m SGR (Select Graphic Rendition): Selects font style and enhancements (bold and underline). One font designator plus any number of enhancements can be entered in the escape sequence using the parameter values in the following table. If the requested font is not installed, the default font is selected.
Parameter
0
1
4
5
21
22
24
25
26
Enhancement
Cancel all print enhancements
Bold (enhancement)
Underline (enhancement)
Double Wide
Underline
Cancel Bold
Cancel Underline
Cancel Expanded
Cancel Proportional
Parameter
10
11
12
13
14
15
16
17
18
19
Font
Default Font - Data Processing
Gothic Draft Font
Character Graphics
Gothic NLQ Font
Courier NLQ Font
High Speed Draft Font
OCR-A
OCR-B
Italic NLQ Font or Download A*
Correspondence or Download B*
Chapter 2. ANSI Emulation
32
GEK-00029B
ESC [ p1 ; p ... m (continued)
*A download font (if loaded) overrides any other font. See Character
Map Load on page 23.
Examples:
For Gothic NLQ font underlined send:
ESC [ 4 ; 13 m
To cancel underlining and retain Gothic NLQ - send one of the following:
Decimal:
Hex:
BASIC:
ESC [ ; 13 m
ESC [ 0 ; 13 m
ESC [ 0 m
ESC [ 24m
27 91 <p1> ; <pn> m
1B 5B <p1> 3B ... <pn> 6D
CHR$(27);"[<p1>;...<pn> m";
GEK-00029B
33
5000 Series Programmer’s Manual
ESC [ p1; ... pn h
ESC [ p1 ... pn l
SM (Set Mode): Sets the mode or modes specified by the parameters listed below. Parameters preceded by the 'greater than' sign are privately defined modes and should be sent separately.
Parameter
Number
20
Mode
Mnemonic
LNM
Mode Function
Line Feed New Line Mode
LNM - Line Feed New Line Mode . When using this mode, a received line feed command causes a carriage return (new line). When LNM is reset, a line feed command only causes a vertical position movement.
The following parameters are privately defined modes.
Parameter
Number
>1
>2
>5
Mode
Mnemonic
GENPRM
GENC1C
GENCS2
Mode Function
Proportional Print Mode
C1 Control Code Mode
Character Set 2 Mode
GENPRM (Proportional Print Mode): Enables proportional printing.
This mode does not apply to the oversize character feature. When reset (default), characters are spaced at the current cpi.
GENC1C (C1 Control Code Mode - PC Set 1): When set, it allows the use of C1 control codes. When reset, 80H - 9FH are ignored. See
Appendix E for an explanation of how character sets are mapped. The default state is set using ANSI emulation option 6 (see Appendix D,
ANSI (4800) or ANSI (4410) Tables).
GENSC2 (Character Set 2 Mode - PC Set 2): Selects character set 2 of any of the 8-bit international character sets. See PC Set 2 in
Appendix H for an explanation of how character sets are mapped. The default state is set using option strap 7 in the ANSI emulation options (see Appendix D, ANSI (4800) or ANSI (4410) Tables).
EXAMPLE: To print proportional, send ESC [ > 1 h.
Decimal:
Hex:
BASIC:
27 91 62 49 104
1B 5B 3E 31 68
CHR$(27);"[>1h";
RM (Reset Mode): Resets any modes turned on by the Set Mode command above. Parameters and syntax are the same.
Chapter 2. ANSI Emulation
34
GEK-00029B
ESC ] 5
ESC [ p1 SP }
BFL (Begin Font Load): This sequence is not honored when self-test determines that the download font option is not installed. Permits downloading of customer-defined font characters into printer nonvolatile memory from the host. Loading is terminated when an
ESC \ sequence is received.
Decimal:
Hex:
BASIC:
27 93 53
1B 5D 35
CHR$(27);"]5";
GENDFC (Download Font Control): Using the serial interface, this command allows the host to see if at least one valid font is loaded
(p1=2). The printer sends DCS 30H 30H ST if a font is loaded,
DCS 44H 45H ST if no font is loaded. It also provides the capability to erase the download font area (p1=1).
Decimal:
Hex:
BASIC:
27 91 <p1> 32 125
1B 5B <p1> 20 7D
CHR$(27);"[<p1>}";
GEK-00029B
35
5000 Series Programmer’s Manual
advertisement
Related manuals
advertisement
Table of contents
- 8 Chapter 1.Introduction
- 8 overview of printer emulation
- 8 Control Codes
- 8 Escape Sequences
- 9 CSI and OSC
- 10 Line Terminators
- 10 Decipoints
- 10 SCS Smart Graphics Capabilities
- 11 Chapter 2. ANSI Emulation
- 11 Control Code and Escape Sequence Activity Levels
- 11 Notes
- 12 Control Code Activity Levels
- 13 Escape Sequence Activity Levels
- 14 Control Code Definitions
- 16 Escape Sequence Directory
- 18 ANSI ESCAPE SEQUENCE CATEGORIES
- 19 Housekeeping Sequences
- 22 Character Set Selection
- 23 Character Map Load
- 25 Paper and Print Position Movements
- 28 Margins and Tabs
- 31 Font Handling and Enhancements
- 36 Graphics
- 36 Six-Bit Graphics
- 36 Dot Patterns and Densities
- 38 Horizontal Format
- 38 Vertical Format
- 39 Eight-Bit Graphics
- 39 Horizontal Format
- 39 Vertical Format
- 40 Other Graphics Considerations
- 40 Graphics Sequences
- 42 Electronic Vertical Format Unit - EVFU
- 42 Downloading the EVFU
- 42 Loading the Table
- 43 BASIC Programming Example for EVFU Table Loading
- 44 EVFU Default
- 44 Skip to Channel Command
- 45 BASIC Programming Example for Skip to Channel
- 46 Bar codes
- 46 Entering and Exiting Bar Codes
- 46 ANSI 4800/4410 Strap 1 OUT
- 46 ANSI 4800/4410 Strap 1 IN
- 47 Setting Bar Code Parameters
- 48 Bar Code Dimensions
- 50 Default Bar Code Characteristics
- 50 Human-Readable Line (HRL)
- 50 Font Styles and Enhancements
- 50 Spacing and Bar Code Editing Aids
- 51 Bar Code Readability Statement
- 52 Bar Code Program Examples
- 52 Test Program
- 52 Error Symbol
- 53 Changing Parameters
- 53 Commas and Spaces as Delimiters
- 54 Horizontal Spacing
- 55 Printer Option Strap 11, Group 2 IN
- 55 EXAMPLE 1: Strap 11 OUT
- 55 EXAMPLE 2: Strap 11 IN
- 57 Vertical Bar Codes
- 57 COMMAS: With HRL
- 58 COMMAS: Without HRL
- 58 SPACES: With HRL
- 58 SPACES: Without HRL
- 59 Horizontal Tabs
- 60 OVERSIZE CHARACTER FONT
- 60 Entering and Exiting Oversize
- 61 Selecting Size
- 61 Size Parameters for Rotation
- 61 Spacing Between Characters
- 62 Sample Programs
- 62 Example
- 64 Printer Control Strap GenPrtOpts/Group 2/Strap
- 65 Example 4: GenPtrOpts | Group 2 Strap 13 IN
- 65 Example 5: GenPtrOpts | Group 2 Strap 13 OUT
- 66 Chapter 3.Printronix P300/P600 Emulation
- 66 Introduction
- 66 Control Codes
- 69 Printronix Graphics
- 69 Dot Patterns and Densities
- 70 Dot Patterns
- 71 Normal-Density Graphics
- 71 High-Density Graphics
- 71 P300/600 8-Bit Horizontal Graphics
- 72 P300/600 Electronic Vertical Format Unit
- 72 Using the EVFU
- 72 Points to Remember
- 73 PI Lead Codes – Use with Serial Interface
- 73 Codes Not Using the PI Lead
- 74 Example EVFU Loading Program
- 75 Example Form Printout
- 75 Sample Program to Print Form
- 76 Chapter 4.Printronix P-Series Emulation
- 76 Special Function Control Character (SFCC)
- 76 Command Line
- 77 Set and Reset Codes
- 78 Command Index
- 80 Control Codes
- 82 character sets, FONT handling and enhancements
- 92 Housekeeping Commands
- 98 Plot Mode Graphics Operational Description
- 98 Plot Density
- 98 Normal Density Plot Mode
- 98 Double Density Plot Mode
- 98 Plot Mode Format
- 99 Plot Data Line Format
- 99 Normal Density Plot Mode Format
- 100 Double Density Plot Mode Format
- 101 Plot Mode Graphic Character Chart
- 101 Exiting Plot Mode Graphics
- 102 Plot Mode Graphics density commands
- 104 Differences From Target Printer Emulation
- 104 Discarded Commands
- 104 Select Extended Character Set (SFCC OSET;n)
- 104 Download a Language (SFCC V)
- 104 Download a Character Shape (SFCC c)
- 104 Postnet Bar codes (SFCC |p*xxxxx-yyyy-zz*)
- 104 Ribbon Minder Enable/Disable (SFCC r E/SFCC r D)
- 104 Ribbon Minder Set Job Rate (SFCC r J nnnn E)
- 104 Ribbon Minder Worn Message (SFCC r A n)
- 105 Command Line Debug
- 106 Font Styles, Pitches, and Character Sets
- 106 Font Styles
- 106 Font Pitches
- 106 Character Sets
- 106 Extended Character Sets
- 106 Form Length
- 107 Plot Mode Graphic Densities
- 107 Enhancements
- 107 High Vertical Density Plot Mode Graphics
- 108 Chapter 5.Proprinter Emulation
- 108 Introduction
- 108 Differences from proprinter
- 108 Proprinter Control Codes
- 111 Command Directory
- 112 Escape Sequences
- 119 Proprinter Dot Graphics
- 122 Chapter 6.Epson FX286-e Emulation
- 122 Introduction
- 122 Conventions Used in this Chapter
- 123 Print Mode Combinations
- 124 Functional Differences
- 125 Additional Escape Sequences
- 125 Unsupported Escape Sequences
- 126 FX-286e Control Codes
- 129 FX-286e Escape Sequence DIRECTORY
- 131 FX-286e Escape Sequence GROUPINGS
- 132 Margins
- 134 Line Spacing
- 135 Character Spacing
- 138 Paper Movement
- 139 Print Position
- 141 Print Modes
- 145 Special Character Printing
- 149 Miscellaneous Commands
- 150 FX-286e Dot Graphics
- 150 Specifying Graphics Line Length
- 151 Image Data Bytes
- 151 Graphics Programming Example
- 151 Printed Results of Sample Program
- 152 FX-286e Dot Graphics Control Sequences
- 155 Chapter 7.DEC LG / Compaq LG Plus Emulation
- 155 Control Code Definitions
- 158 Commands
- 195 Chapter 8.PPL3 Plus Emulation
- 195 INTRODUCTION
- 195 General Considerations
- 195 Coded Characters
- 196 7-Bit Versus 8-Bit Environments
- 198 Printable Characters
- 199 CONTROL CODES
- 199 Introduction
- 199 C0 Control Characters
- 201 C1 Control Characters
- 203 SPECIAL CHARACTER PROCESSING
- 203 Hex 7F
- 203 Hex A
- 203 Hex FF
- 204 Special Character Parsing
- 205 ESCAPE SEQUENCE / control function syntax
- 205 Escape Sequence Syntax
- 205 Control Sequence Syntax
- 206 Parameter Values Within Control Sequences
- 207 COMMAND DIRECTORY
- 209 COMMAND DICTIONARY
- 251 PAGE COORDINATE SYSTEM
- 251 Coordinate System Models
- 252 Character Cell Model
- 252 Point Model
- 252 Point Model Has Precedence
- 252 Origin and Extent
- 252 Origin
- 253 Printable Area
- 253 Positioning and Movement
- 254 Horizontal Advance Increments
- 254 Fixed HAI
- 256 SIXEL GRAPHICS
- 256 Terminology and Concepts
- 257 General Sixel Graphics Operation
- 258 Sixel Graphics Commands
- 261 Appendix A. Using the Hex Dump
- 262 Appendix B. Font Print Samples
- 265 Appendix C. Postnet Bar codes
- 265 Entering and Exiting POSTNET Bar Codes
- 265 Selecting POSTNET Style Bar Codes
- 268 Appendix D. Description of Strapping Options
- 269 General Printer Options Definitions
- 270 Legacy Parallel Software Strap Definitions
- 271 Emulation Option descriptions
- 275 Appendix E. DSC Code Charts
- 310 Index