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

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

Inherits asposebarcode.Assist.BaseJavaClass.

Public Member Functions

def __init__ (self, source)
 
def init (self)
 
def getFamilyName (self)
 Gets the face name of this Font. More...
 
def setFamilyName (self, value)
 Sets the face name of this Font. More...
 
def getStyle (self)
 Gets style information for this FontUnit. More...
 
def setStyle (self, value)
 Sets style information for this FontUnit. More...
 
def getSize (self)
 Gets size of this FontUnit in Unit value. More...
 
- Public Member Functions inherited from asposebarcode.Assist.BaseJavaClass
def getJavaClass (self)
 
def setJavaClass (self, javaClass)
 
def getJavaClassName (self)
 
def isNull (self)
 
def printJavaClassName (self)
 

Static Public Member Functions

def initFontUnit (source)
 

Additional Inherited Members

- Public Attributes inherited from asposebarcode.Assist.BaseJavaClass
 javaClass
 
 javaClassName
 

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 = 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)

Constructor & Destructor Documentation

◆ __init__()

def asposebarcode.Generation.FontUnit.__init__ (   self,
  source 
)

Member Function Documentation

◆ getFamilyName()

def asposebarcode.Generation.FontUnit.getFamilyName (   self)

Gets the face name of this Font.

◆ getSize()

def asposebarcode.Generation.FontUnit.getSize (   self)

Gets size of this FontUnit in Unit value.

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

◆ getStyle()

def asposebarcode.Generation.FontUnit.getStyle (   self)

Gets style information for this FontUnit.

◆ init()

def asposebarcode.Generation.FontUnit.init (   self)

◆ initFontUnit()

def asposebarcode.Generation.FontUnit.initFontUnit (   source)
static

◆ setFamilyName()

def asposebarcode.Generation.FontUnit.setFamilyName (   self,
  value 
)

Sets the face name of this Font.

◆ setStyle()

def asposebarcode.Generation.FontUnit.setStyle (   self,
  value 
)

Sets style information for this FontUnit.