‪Aspose.Barcode for PHP via Java  22.4
‪Aspose.Barcode for PHP via Java Generation and Recognition API docs
All Classes Functions Variables
FontUnit Class Reference

Inherits BaseJavaClass.

Public Member Functions

 __construct ($source)
 
 getFamilyName ()
 
 setFamilyName (string $value)
 
 getStyle ()
 
 setStyle (int $value)
 
 getSize ()
 
 getJavaClass ()
 
 getJavaClassName ()
 
 isNull ()
 
 printJavaClassName ()
 

Protected Member Functions

 init ()
 
 setJavaClass ($javaClass)
 

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.

◆ getJavaClass()

BaseJavaClass::getJavaClass ( )
inherited

◆ getJavaClassName()

BaseJavaClass::getJavaClassName ( )
inherited

◆ getSize()

FontUnit::getSize ( )

Gets size of this FontUnit in Unit value.

Exceptions
IllegalArgumentException‪The 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.

◆ isNull()

BaseJavaClass::isNull ( )
inherited

◆ printJavaClassName()

BaseJavaClass::printJavaClassName ( )
inherited

◆ setFamilyName()

FontUnit::setFamilyName ( string  $value)

Sets the face name of this Font.

◆ setJavaClass()

BaseJavaClass::setJavaClass (   $javaClass)
protectedinherited

◆ setStyle()

FontUnit::setStyle ( int  $value)

Sets style information for this FontUnit.