FontUnit

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

Properties

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.

Examples

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

[C#]
  using (BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.Code128))
  {
      generator.CodeTextStyle.Font.Style = FontStyle.Italic;
      generator.CodeTextStyle.Font.Size.Point = 18;
      generator.Save("test.png");
  }

See Also