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() constGets the face name of this Font.
get_Size() constGets size of this FontUnit in Unit value.
get_Style() constGets 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