FontUnit class

Defines a particular format for text, including font face, size, and style attributes where size in Unit value property.

public sealed class FontUnit


Name Description
FamilyName { get; set; } Gets or sets the face name of this Font.
Size { get; } Gets or sets size of this FontUnit in Unit value.
Style { get; set; } Gets or sets style information for this FontUnit.


This sample shows how to create and save a BarCode image.

  using (BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.Code128))
      generator.CodeTextStyle.Font.Style = FontStyle.Italic;
      generator.CodeTextStyle.Font.Size.Point = 18;

See Also