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

NameTypeAccessDescription
nameStringReadReturns the name.
sizedoubleReadReturns the size.
boldbooleanReadReturns the bold.
italicbooleanReadReturns the italic.
underlinebooleanReadReturns the underline.
strikeThroughbooleanReadReturns the strike through.
colorColorReadReturns the color.

Methods

SignatureDescription
getName()StringReturns the name.
setName(name: String)Sets the name.
getSize()doubleReturns the size.
setSize(size: double)Sets the size.
getBold()booleanReturns the bold.
setBold(bold: boolean)Sets the bold.
getItalic()booleanReturns the italic.
setItalic(italic: boolean)Sets the italic.
getUnderline()booleanReturns the underline.
setUnderline(underline: boolean)Sets the underline.
getStrikeThrough()booleanReturns the strike through.
setStrikeThrough(strikeThrough: boolean)Sets the strike through.
getColor()ColorReturns the color.
setColor(color: Color)Sets the color.
clone()FontCreates a copy of this instance.

See Also

 English