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

Inherits BaseJavaClass.

Public Member Functions

 __construct ($source)
 
 getFamilyName ()
 
 setFamilyName (string $value)
 
 getStyle ()
 
 setStyle (int $value)
 
 getSize ()
 
- Public Member Functions inherited from BaseJavaClass
 getJavaClass ()
 
 getJavaClassName ()
 
 isNull ()
 
 printJavaClassName ()
 

Protected Member Functions

 init ()
 
- Protected Member Functions inherited from BaseJavaClass
 setJavaClass ($javaClass)
 

Static Private Member Functions

static initFontUnit ($source)
 

Private Attributes

 $_size
 

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->getParameters()->getCaptionAbove()->setText("CAPTION ABOOVE");
$generator->getParameters()->getCaptionAbove()->setVisible(true);
$generator->getParameters()->getCaptionAbove()->getFont()->setStyle(FontStyle::ITALIC);
$generator->getParameters()->getCaptionAbove()->getFont()->getSize()->setPoint(25);

Constructor & Destructor Documentation

◆ __construct()

FontUnit::__construct (   $source)

Reimplemented from BaseJavaClass.

Member Function Documentation

◆ getFamilyName()

FontUnit::getFamilyName ( )

Gets the face name of this Font.

◆ getSize()

FontUnit::getSize ( )

Gets size of this FontUnit in Unit value.

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

◆ getStyle()

FontUnit::getStyle ( )

Gets style information for this FontUnit.

◆ init()

FontUnit::init ( )
protected

Reimplemented from BaseJavaClass.

◆ initFontUnit()

static FontUnit::initFontUnit (   $source)
staticprivate

◆ setFamilyName()

FontUnit::setFamilyName ( string  $value)

Sets the face name of this Font.

◆ setStyle()

FontUnit::setStyle ( int  $value)

Sets style information for this FontUnit.

Member Data Documentation

◆ $_size

FontUnit::$_size
private