Skip to main content

TextFont Class

Contains properties that specify the font settings for a presentation text.

Declaration

public final class TextFont extends Struct<TextFont>

Inherited Members

com.devexpress.system.Struct.equals(java.lang.Object)
com.devexpress.system.Struct.getHashCode()
com.devexpress.system.Struct.hashCode()
java.lang.Object.clone()
java.lang.Object.finalize()
java.lang.Object.getClass()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.toString()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)

Inheritance

Object
com.devexpress.system.Struct
TextFont

Constructors

TextFont() Constructor

Initializes a new instance of the TextFont class.

Declaration

public TextFont()

TextFont(String name, String panose, byte charset, byte pitchFamily) Constructor

Initializes a new instance of the TextFont class with specified settings.

Declaration

public TextFont(String name, String panose, byte charset, byte pitchFamily)

Parameters

Name Type Description
name String

The font name.

panose String

The PANOSE font classification string.

charset byte

The font character set identifier.

pitchFamily byte

The font pitch and family information.

TextFont(String typeface) Constructor

Initializes a new instance of the TextFont class with specified settings.

Declaration

public TextFont(String typeface)

Parameters

Name Type Description
typeface String

The font name.

Fields

AUTOMATIC Field

Gets a TextFont object with automatic font settings.

Declaration

public static final TextFont AUTOMATIC

Field Value

Type Description
TextFont

A TextFont object that specifies font settings.

Charset Field

The font character set identifier.

Declaration

public byte Charset

Field Value

Type Description
byte

The font character set identifier.

Name Field

Gets the font name.

Declaration

public String Name

Field Value

Type Description
String

The font name.

Panose Field

Gets the PANOSE font classification string.

Declaration

public String Panose

Field Value

Type Description
String

The PANOSE font classification string.

PitchFamily Field

The font pitch and family information.

Declaration

public byte PitchFamily

Field Value

Type Description
byte

The font pitch and family information.

Methods

equals(Object obj) Method

Determines whether the specified object is equal to this font.

Declaration

public boolean equals(Object obj)

Parameters

Name Type Description
obj Object

The object to compare with this font.

Returns

Type Description
boolean

true if the specified object is equal to this font; otherwise, false.

equals(TextFont other) Method

Indicates whether the current object is equal to another TextFont object.

Declaration

public boolean equals(TextFont other)

Parameters

Name Type Description
other TextFont

The TextFont object to compare with the current object.

Returns

Type Description
boolean

true if the current object is equal to the other parameter; otherwise, false.

hashCode() Method

Returns a hash code value for this font.

Declaration

public int hashCode()

Returns

Type Description
int

The hash code.