Aspose::BarCode::Generation::FontUnit class

FontUnit class

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

class FontUnit : public System::Object

Methods

MethodDescription
get_FamilyName()Gets the face name of this Font.
get_Size()Gets size of this FontUnit in Unit value.
get_Style()Gets style information for this FontUnit.
set_FamilyName(System::String)Sets the face name of this Font.
set_Style(System::Drawing::FontStyle)Sets style information for this FontUnit.

Remarks

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