TextFont Class
Contains properties that specify the font settings for a presentation text.
Declaration
public final class TextFont extends Struct<TextFont>
Inherited Members
Inheritance
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 |
| 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 |
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 |
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 |
|
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 |
Returns
| Type | Description |
|---|---|
| boolean |
|
hashCode() Method
Returns a hash code value for this font.
Declaration
public int hashCode()
Returns
| Type | Description |
|---|---|
| int | The hash code. |