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

ValueDescription
AUTOSpecifies a generic family name.
ROMANSpecifies a proportional font with serifs.
SWISSSpecifies a proportional font without serifs.
MODERNSpecifies a monospace font with or without serifs.
SCRIPTSpecifies a font that is designed to look like handwriting; examples include Script and Cursive.
DECORATIVESpecifies a novelty font.

Properties

NameTypeAccessDescription
valuesint[]ReadReturns array of FontFamily values.

Methods

SignatureDescription
getName(fontFamily: int) → StringReturns JAVA_STYLE string representation of integer FontFamily value.
toString(fontFamily: int) → StringReturns DotNetStyle string representation of integer FontFamily value.
fromName(fontFamilyName: String) → intReturns integer representation by FontFamily name.
getValues() → int[]Returns array of FontFamily values.

See Also