FontUnit

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

NameDescription
FontUnit(object)Initializes a new instance of the FontUnit class.

Methods

NameDescription
getFamilyNameGets the face name of this Font.
getSizeGets size of this FontUnit in Unit value.
getStyleGets 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

NameDescription
_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