At,x,y,w,h,g,s,d,m,data – GoDEX EZPL User Manual
Page 39
![background image](/manuals/736893/39/background.png)
34
AT,x,y,w,h,g,s,d,m,data - Print built-in true type font
Syntax
AT,x,y,w,h,g,s,d,m,data
Parameter
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
m = m = 0 width/height AspectRatio mode
m = 1 Average width mode (refer to Further Information)
data = Data to be printed
*Portions of this software are copyright 2000-Feb-08 The FreeType Project
(www.freetype.org).
Description
Print built-in True Type Font (TTF).
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.
Sample
AT,48,92,90,90,0,0,0,0,01234ABCDE
AT,50,324,90,90,0,0BTU,0,0,01234ABCDE
【
Note
】
For conversion: 1mm = 8 dots when printing with 203dpi printer; 1mm = 12 dots when printing with 300dpi printer.