FontUnit
Contents
[
Hide
]FontUnit class
Defines a particular format for text, including font face, size, and style attributes where size in Unit value property.
public class FontUnit : joint.BaseJavaClass
Constructors
| Name | Description |
|---|---|
| FontUnit(object) | Initializes a new instance of the FontUnit class. |
Methods
| Name | Description |
|---|---|
| getFamilyName | Gets the face name of this Font. |
| getSize | Gets size of this FontUnit in Unit value. |
| getStyle | Gets style information for this FontUnit. |
| init | |
| initFontUnit(object) | |
| setFamilyName(object) | Sets the face name of this Font. |
| setStyle(object) | Sets style information for this FontUnit. |
Fields
| Name | Description |
|---|---|
| _size |
Examples
This sample shows how to create and save a BarCode image.
let generator = new BarcodeGenerator(EncodeTypes.CODE_128);
generator.getParameters().getCaptionAbove().setText("CAPTION ABOOVE");
generator.getParameters().getCaptionAbove().setVisible(true);
generator.getParameters().getCaptionAbove().getFont().setStyle(FontStyle.ITALIC);
generator.getParameters().getCaptionAbove().getFont().getSize().setPoint(25);
See Also
- assembly Aspose.BarCode