Please enable JavaScript to view this site.

A-Shell Reference

xcall MIAMEX, MX_GDICALC, MXGDI_SETFONT, handle, status, pointsz {,face, pitchfam, charset, weight, style, rotation, width}

Establishes the font to be used for the various CALCxxx operations to follow. All of the parameters below are the same as those used by the GDI printing directive SETFONT.

Parameter

Type

I/O

Description

handle

B,4

in

Device context handle (from MXGDI_OPEN)

status

F6

out

MX_GDICALC Status Codes.

pointsz

Num

in

Font height in tenths of points.

face

String

in

Font face name. If not specified, the Windows default font face for the specified printer will be used.

pitchfam

Num

in

Font pitch and family characteristics. If not specified, will be determined by the natural characteristics of the font face.

charset

Num

in

Character set indicator. If not specified, the default character set for the font determined by the other parameters will be used.

weight

Num

in

Symbolic code for the desired weight of the font. If not specified, the default weight is used.

style

Num

in

Flags for italic (+1), underline (+2), and strikeout (+4)

rotation

Num

in

Rotation in degrees; positive for clockwise.

width

Num

in

Font character width specification. Normally the font width is a function of the height and the font style, but you can squeeze or stretch it using this option. Units, if positive, are the same as that for height (tenths of points); if negative, indicates the number of characters that will fit on a line across the page (not the rectangle). Mainly applicable only for fixed pitch fonts.