Att,x,y,w,h,g,s,d,m,data – GoDEX EZPL User Manual

Page 40

Advertising
background image

35

ATt,x,y,w,h,g,s,d,m,data - Print downloaded true type font

Syntax

ATt,x,y,w,h,g,s,d,m,data

Parameter

t = TTF type, accepted values: from A to Z

x = Hori of left-top position of text (unit: dot, 1 mm = 8 dots or 12 dots)

y = Vert of left-top position of text (unit: dot, 1 mm = 8 dots or 12 dots)

w = The width of font (8~2000 dot)

h = The height of font (8~2000 dot)

g = Space between characters (0~200 dot)

s = Font setting. It consists of 2 parts, one is rotation setting and the other is font style

setting.

The rotation setting is from 0 to 3:

0  0° 1  90° 2  180° 3  270°

The font style setting is optional setting. It includes 3 types, can be set with none,

one, two or three together:

B  Bold T  Italic U  Underline

To use UNICODE please setup as below:

E  UTF8 L  UTF16 LO H  UTF16 HI ( UTF16 characters should be end up with 4

0x00)

d = DType  0: ASCII A~Z: Unicode table

m = m = 0  width/height AspectRatio mode

m = 1  Average width mode (refer to Further Information)

data = Data to be printed

Description

Print downloaded True Type Font.

Further

Information

In width/height AspectRatio mode (m = 0):

When the width (w) and the height (h) of TTF are equal, the printing result of TTF will

be exactly the same with Windows font. There is a formula to calculate the Windows

font size from TTF size:

TTFheightsize = WindowsFontsize*dpi/72

For example, if user want to print Windows font 72pt on 203dpi printer, then the

TTFheightsize = 72*203/72 = 203. And the TTFwidthsize should be equal to TTFheightsize,

which is 203. As a result, when the width and height of TTF both are 203, the printout

will be the same with Windows font 72pt.

In Average width mode (m = 1):

The height in dot is calculated the same as width/height AspectRatio mode, but the

width is the average width in dots. If width=0, a 1:1 aspect ratio font is rendered.

Advertising