FontFamily
Overview
FontFamily is an enum in Aspose.Words FOSS for Java.
Represents the font family.
Edition status of its 11 listed members (a property and its accessor methods are listed separately, overloads once): 11 not yet exercised by a verified example.
This enum declares 4 methods for FontFamily objects in Java programs.
Available methods include: fromName, getName, getValues, toString.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Properties: values.
Values
| Value | Description |
|---|---|
AUTO | Specifies a generic family name. |
ROMAN | Specifies a proportional font with serifs. |
SWISS | Specifies a proportional font without serifs. |
MODERN | Specifies a monospace font with or without serifs. |
SCRIPT | Specifies a font that is designed to look like handwriting; examples include Script and Cursive. |
DECORATIVE | Specifies a novelty font. |
Properties
| Name | Type | Access | Description |
|---|---|---|---|
values | int[] | Read | Returns array of FontFamily values. |
Methods
| Signature | Description |
|---|---|
getName(fontFamily: int) → String | Returns JAVA_STYLE string representation of integer FontFamily value. |
toString(fontFamily: int) → String | Returns DotNetStyle string representation of integer FontFamily value. |
fromName(fontFamilyName: String) → int | Returns integer representation by FontFamily name. |
getValues() → int[] | Returns array of FontFamily values. |