-
-
Notifications
You must be signed in to change notification settings - Fork 75
Text Positioning
The textxalign option is used to specify where to horizontally position the text.
textxalign=offlefttextxalign=lefttextxalign=centertextxalign=righttextxalign=offrighttextxalign=justify
Data: Test123
Options: includetext textxalign=center
Encoder: code128
The textyalign option is used to specify where to vertically position the text.
textyalign=belowtextyalign=bottomtextyalign=centertextyalign=toptextyalign=above
Data: Test
Options: includetext alttext=Test textyalign=above
Encoder: qrcode
The textdirection option is used to specify in which direction to orient text.
textdirection=forwardtextdirection=backwardtextdirection=upwardtextdirection=downward
Data: Test
Options: includetext alttext=Test textxalign=offright textdirection=upward
Encoder: datamatrix
The horizontal position of the text in points relative to the leftmost bar or modules.
Data: TEST
Options: includetext textxoffset=-20
Encoder: code39
The vertical position of the text in points relative to the base of the bars or modules.
Data: TEST
Options: includetext textyoffset=-10
Encoder: code39
- By default (in the absence of textxalign or textyalign), each character of text is placed immediately below the corresponding modules where this is possible.
- Where there isn't such a direct relationship then the default is to position the text centrally beneath the symbol.
Any extra text can be positioned using the extratextxalign, extratextyalign, extratextdirection, extratextxoffset and extratextyoffset options that function the same as their textxalign, textyalign, textdirection, textxoffset and textyoffset analogues.
Home | Download | Documentation (PDF) | Source | Support | Issues | Online Barcode Generator