Label Printer Fonts
Introduction
The label to be printed for each Job is specified in the ticket.json sent from the external system. The description is then processed into a PDF file which is sent to the printer.
Therefore, all PDF standard fonts are available for printing:
- Courier, Courier-Bold, Courier-BoldOblique, Courier-Oblique
- Helvetica, Helvetica-Bold, Helvetica-BoldOblique, Helvetica-Oblique
- Symbol
- Times-Bold, Times-BoldItalic, Times-Italic, Times-Roman
- ZapfDingbats
However:
We do not recommend using a PDF standard font because they do not provide good printing qualtiy and they only support a limited set of international characters.
For best printing results, the RX400 comes with a high quality multilingual font set preinstalled, which should be used for label printing.
Label Specification with Preinstalled Fonts
In order to use one of the preinstalled fonts:
- Add a
sourcesblock namedfonts, referencing the fonts directory:/data/storage/jobs/. Please mind the trailing slash. - In
labelblocks of typetextspecify the font with afilespecification:
"sourcename": "fonts""path":the font filename
{
"version": "5.0",
"sources": [
{
"type": ... Your type ...,
"name": ... Your source name ...,
"path": ... Your path ...
},
{
"type": "local",
"name": "fonts",
"path": "/fonts/"
}
],
"job": {
"type": "write",
"values": {
... Your values here ...
},
"settings": {
"verify": "no",
"verify_amount": 0,
"verify_each": 1,
"quantity": 1,
"store": false,
"autostart": true
},
"targets": [
{
"type": "usb",
"data_type": "create",
"devicename": ... Your filesystem label ...,
"filesystem": "exfat",
"data": [
{
"sourcename": ... Your source name ...,
"mapping": {
"path": ... Your path ...,
"destination": "/"
}
}
]
}
],
"label": {
"type": "create",
"size": { "width": 54, "height": 25 },
"blocks": [
... Your blocks here ...
Two example text lines with recommended fonts follow:
{
"type": "text",
"align": "left",
"position": { "x": 1, "y": 18 },
"text": {
"color": "#000000",
"font_size": 9,
"lines": [ "Title line - NotoSansDisplay-Bold 9" ],
"file": {
"sourcename": "fonts",
"path": "NotoSansDisplay-Bold.ttf"
}
},
{
"type": "text",
"align": "left",
"position": { "x": 1, "y": 11 },
"text": {
"color": "#000000",
"font_size": 8,
"lines": [ "Text line - NotoSansDisplay-SemiBold 8" ],
"file": {
"sourcename": "fonts",
"path": "NotoSansDisplay-SemiBold.ttf"
}
}
]
}
}
}
}
List of Preinstalled Fonts
The following table lists preinstalled fonts on the RX400. The font names link to the respective font website.
| Name | Weight | Style | Filename | Rec | Min |
| Noto Sans, | 400 | normal | NotoSans-Regular.ttf | 8 | 8 |
| 400 | italic | NotoSans-Italic.ttf | 8 | 8 | |
| 700 | normal | NotoSans-Bold.ttf | 9 | 7 | |
| 700 | italic | NotoSans-BoldItalic.ttf | 9 | 7 | |
| Noto Sans Display | 400 | normal | NotoSansDisplay-Regular.ttf | 9 | 9 |
| 400 | italic | NotoSansDisplay-Italic.ttf | 9 | 9 | |
| recommended for regular text | 600 | normal | NotoSansDisplay-SemiBold.ttf | 8 | 7 |
| 600 | italic | NotoSansDisplay-SemiBoldItalic.ttf | 8 | 7 | |
| recommended for bold text | 700 | normal | NotoSansDisplay-Bold.ttf | 9 | 8 |
| 700 | italic | NotoSansDisplay-BoldItalic.ttf | 9 | 8 | |
| Noto Sans Mono | 600 | normal | NotoSansMono-SemiBold.ttf | 8 | 8 |
| 700 | normal | NotoSansMono-Bold.ttf | 8 | 7 | |
| Noto Sans Traditional Chinese | 400 | normal | NotoSansTC-Regular.ttf | ||
| 700 | normal | NotoSansTC-Bold.ttf | |||
| Noto Sans Hong Kong | 400 | normal | NotoSansHK-Regular.ttf | ||
| 700 | normal | NotoSansHK-Bold.ttf | |||
| Noto Sans Simplified Chinese | 400 | normal | NotoSansSC-Regular.ttf | ||
| 700 | normal | NotoSansSC-Bold.ttf | |||
| Noto Serif Traditional Chinese | 400 | normal | NotoSerifTC-Regular.ttf | ||
| 700 | normal | NotoSerifTC-Bold.ttf | |||
| Noto Serif Simplified Chinese | 400 | normal | NotoSerifSC-Regular.ttf | ||
| 700 | normal | NotoSerifSC-Bold.ttf | |||
| 400 | normal | NotoSansJP-Regular.ttf | |||
| 700 | normal | NotoSansJP-Bold.ttf | |||
| Noto Serif Japanese | 400 | normal | NotoSerifJP-Regular.ttf | ||
| 700 | normal | NotoSerifJP-Bold.ttf |
Notes:
- All fonts support Latin, Cyrillic and Greek
- Font weight numbers vs. font weight names
-
Regular: 400
- SemiBold: 600
-
Bold: 700
-
No Comments