Font
Overview
Font is a class in Aspose.Cells FOSS for Java.
Represents a font with its properties.
This class provides 15 methods for working with Font objects in Java programs.
Available methods include: clone, getBold, getColor, getItalic, getName, getSize, getStrikeThrough, getUnderline, setBold, setColor, setItalic, setName, and 3 additional methods.
All exported members are accessible to any Java application after installing the Aspose.Cells FOSS for Java package.
Properties: bold, color, italic, name, size, strikeThrough, and 1 more.
Description
Font is a class in the Aspose.Cells FOSS library for Java that exposes 15 methods and 7 properties for programmatic use.
Core capabilities include: string; double; boolean. These operations enable developers to integrate font functionality directly into Java applications.
The class also provides the name property (returns the name), the size property (returns the size), the bold property (returns the bold).
Properties
| Name | Type | Access | Description |
|---|---|---|---|
name | String | Read | Returns the name. |
size | double | Read | Returns the size. |
bold | boolean | Read | Returns the bold. |
italic | boolean | Read | Returns the italic. |
underline | boolean | Read | Returns the underline. |
strikeThrough | boolean | Read | Returns the strike through. |
color | Color | Read | Returns the color. |
Methods
| Signature | Description |
|---|---|
getName() → String | Returns the name. |
setName(name: String) | Sets the name. |
getSize() → double | Returns the size. |
setSize(size: double) | Sets the size. |
getBold() → boolean | Returns the bold. |
setBold(bold: boolean) | Sets the bold. |
getItalic() → boolean | Returns the italic. |
setItalic(italic: boolean) | Sets the italic. |
getUnderline() → boolean | Returns the underline. |
setUnderline(underline: boolean) | Sets the underline. |
getStrikeThrough() → boolean | Returns the strike through. |
setStrikeThrough(strikeThrough: boolean) | Sets the strike through. |
getColor() → Color | Returns the color. |
setColor(color: Color) | Sets the color. |
clone() → Font | Creates a copy of this instance. |