Aspose.Barcode for PHP via Java Generation and Recognition API docs
FontUnit Class Reference

Inherits BaseJavaClass.

Public Member Functions

 getFamilyName ()
 
 setFamilyName ($value)
 
 getStyle ()
 
 setStyle ($value)
 
 getSize ()
 

Detailed Description

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


 This sample shows how to create and save a BarCode image.
 
  $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);
   

Member Function Documentation

◆ getFamilyName()

getFamilyName ( )

Gets the face name of this Font.

◆ getSize()

getSize ( )

Gets size of this FontUnit in Unit value.

Exceptions
IllegalArgumentExceptionThe Size parameter value is less than or equal to 0.

◆ getStyle()

getStyle ( )

Gets style information for this FontUnit.

◆ setFamilyName()

setFamilyName (   $value)

Sets the face name of this Font.

◆ setStyle()

setStyle (   $value)

Sets style information for this FontUnit.