FontUnit

Inheritance: java.lang.Object

public final class FontUnit

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.
  
         BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.CODE_128);
         generator.getCodeTextStyle().getFont().setStyle(FontStyle.ITALIC);
         generator.getCodeTextStyle().getFont().getSize().setPoint(18);
         generator.save("test.png");

Methods

MethodDescription
equals(Object arg0)
getClass()
getFamilyName()Gets the face name of this Font.
getFont()
getSize()Gets size of this FontUnit in Unit value.
getStateHash()
getStyle()Gets style information for this FontUnit.
hashCode()
notify()
notifyAll()
setFamilyName(String value)Sets the face name of this Font.
setStyle(int value)Sets style information for this FontUnit.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getFamilyName()

public String getFamilyName()

Gets the face name of this Font.

Returns: java.lang.String

getFont()

public System.Drawing.Font getFont()

Returns: com.aspose.ms.System.Drawing.Font

getSize()

public Unit getSize()

Gets size of this FontUnit in Unit value.

Returns: Unit

getStateHash()

public int getStateHash()

Returns: int

getStyle()

public int getStyle()

Gets style information for this FontUnit.

Returns: int

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setFamilyName(String value)

public void setFamilyName(String value)

Sets the face name of this Font.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setStyle(int value)

public void setStyle(int value)

Sets style information for this FontUnit.

Parameters:

ParameterTypeDescription
valueint

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int