Boldness, spacing and rotation
Level of boldness, spacing and rotation of text can be specified when using Ultrafonts with the following syntax:
U A100(boldness, spacing, rotation)
This code is described in the following table.
Parameter | Options | Default | Use |
boldness | 1 to 255 | 2 | Indicates the boldness of the printed character in dots |
spacing | 0 to 10 N causes characters to be spaced disproportionately | 1 | Indicates number of dot columns between characters |
rotation | 0, 90, 180 or 270 | 0 | Indicates the degree of clockwise rotation of the printed character string |
Columns and rows
The following syntax demonstrates the use of columns and rows:
U A20 (2, 4, 0) 100 10
According to this line of code, the Cognitive prints text in the hundredth column on the tenth row. Pay special attention to the rotation entry when specifying the column and row. If a line is specified to rotate 180 degrees or 2670 degrees, the columns and rows start from high to low (900 to 0 and 1050 to 0). If a line is specified to rotate 0 degrees or 90 degrees, the columns and rows start from low to high (0 to 900 and 0 to 1050).
U B40 (2, 4, 180) 800 1000
Using the preceding code, the Cognitive prints text at 180 degrees (upside down) starting in the 800th column on the 1000th row. This example is useful when the ticket stock comes out of the Cognitive bottom first.