FontStyles
Contents
[
Hide
]
Inheritance: java.lang.Object
public final class FontStyles
Represents 4 possible styles of the font, used in the document: Regular, Bold, Italic, or Bold Italic.
Fields
Field | Description |
---|---|
Regular | Regular font style. |
Bold | Bold font style. |
Italic | Italic font style. |
BoldItalic | Bold Italic font style. |
Methods
Method | Description |
---|---|
toString(int style) | Converts a style value to a human-readable string. |
Regular
public static final int Regular
Regular font style.
Bold
public static final int Bold
Bold font style.
Italic
public static final int Italic
Italic font style.
BoldItalic
public static final int BoldItalic
Bold Italic font style.
toString(int style)
public static String toString(int style)
Converts a style value to a human-readable string.
Parameters:
Parameter | Type | Description |
---|---|---|
style | int | the font style value |
Returns: java.lang.String - a string representation of the font style