Font Handling and Enhancements. Genicom P600, 5000 Series, GEK 00031B, GEK 00031B

Add to My manuals
314 Pages

advertisement

Font Handling and Enhancements. Genicom P600, 5000 Series, GEK 00031B, GEK  00031B | Manualzz

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

Download PDF

advertisement

Table of contents