TextFontStyle Class
Lists font styles that can be applied to PDF text.
Declaration
public final class TextFontStyle extends IntEnum<TextFontStyle>
Remarks
The TextFontStyle class supports combined font style values and allows you to specify whether text uses regular, bold, or italic formatting.
Inherited Members
Inheritance
Fields
_BOLD Field
Applies bold font style to PDF text.
Declaration
public static final int _BOLD
Field Value
| Type | Description |
|---|---|
| int | Specifies that bold font style is applied to PDF text. |
_ITALIC Field
Applies regular font style to PDF text.
Declaration
public static final int _ITALIC
Field Value
| Type | Description |
|---|---|
| int | Specifies that italic font style is applied to PDF text. |
_REGULAR Field
Applies regular font style to PDF text.
Declaration
public static final int _REGULAR
Field Value
| Type | Description |
|---|---|
| int | Specifies that regular font style is applied to PDF text. |
BOLD Field
Specifies bold font style.
Declaration
public static final TextFontStyle BOLD
Field Value
| Type | Description |
|---|---|
TextFontStyle |
Bold font style. |
ITALIC Field
Specifies italic font style.
Declaration
public static final TextFontStyle ITALIC
Field Value
| Type | Description |
|---|---|
TextFontStyle |
Italic font style. |
REGULAR Field
Specifies regular font style without additional formatting.
Declaration
public static final TextFontStyle REGULAR
Field Value
| Type | Description |
|---|---|
TextFontStyle |
Regular font style. |
Methods
fromValue(int value) Method
Returns the enum item with the specified integer value.
Declaration
public static TextFontStyle fromValue(int value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | int | The integer value. |
Returns
| Type | Description |
|---|---|
TextFontStyle |
The integer value. |
values() Method
Returns available constants.
Declaration
public static TextFontStyle[] values()
Returns
| Type | Description |
|---|---|
| TextFontStyle[] | An array that contains predefined font styles. |