BarcodeTextOptions Class
The style of the human-readable text (Barcode.Text) printed under the bars of a barcode (BarcodeRenderOptions.Text).
public sealed class BarcodeTextOptionsRemarks
The text is measured with the metrics of BarcodeTextOptions.Fonts, and the fonts become the fonts of the scene (Scene.Fonts), so the SVG, image and PDF renderers draw it with the fonts that measured it. Set SvgRenderOptions.EmbedFonts to embed the font in an SVG document. The text is one line: its control characters (such as the new lines a Code 128 barcode can encode) are drawn as ?.
Constructors
| Name | Description |
|---|---|
| BarcodeTextOptions() |
BarcodeTextOptions()
BarcodeTextOptions.cspublic BarcodeTextOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| FontSize | Gets or sets the size of the font, in units per em. Default is 14. |
| Fonts | Gets or sets the fonts of the text. Default is BarcodeFonts.OcrB, the font usually printed under EAN and UPC barcodes. |
| Paint | Gets or sets the paint of the text. Default is null: the text is painted with BarcodeRenderOptions.DarkPaint. |
| Spacing | Gets or sets the space between the bottom of the bars and the top of the text. Default is 2. |
FontSize
BarcodeTextOptions.csGets or sets the fonts of the text. Default is BarcodeFonts.OcrB, the font usually printed under EAN and UPC barcodes.
public SceneFontCollection Fonts { get; set; }Property value
Gets or sets the paint of the text. Default is null: the text is painted with BarcodeRenderOptions.DarkPaint.
public ScenePaint? Paint { get; set; }Property value
Spacing
BarcodeTextOptions.csGets or sets the space between the bottom of the bars and the top of the text. Default is 2.
public double Spacing { get; set; }Property value
Remarks
For EAN and UPC barcodes, it is the space between the bottom of the data bars (the guard bars are longer) and the digits, and between the digits of the add-on and its bars.