How text is drawn: its typeface, size, weight, slant, lines, color, spacing and baseline.
Remarks
A cell's font (range.getStyle().getFont()) and the text of a chart part
(title.getStyle().getFont() on a title, legend, axis or data labels) are both text styles, so
the same code formats either.
What a style does not state it takes from the text around it: a cell's from the Normal style, a
chart title's from the chart, the chart's from the theme. Reads answer what is drawn, stated or
not.
Setters return the text style to keep chaining on. A cell's font is a snapshot of the cell, so
its setters return the updated font rather than the one they were called on.
How text is drawn: its typeface, size, weight, slant, lines, color, spacing and baseline.
Remarks
A cell's font (
range.getStyle().getFont()) and the text of a chart part (title.getStyle().getFont()on a title, legend, axis or data labels) are both text styles, so the same code formats either.What a style does not state it takes from the text around it: a cell's from the Normal style, a chart title's from the chart, the chart's from the theme. Reads answer what is drawn, stated or not.
Setters return the text style to keep chaining on. A cell's font is a snapshot of the cell, so its setters return the updated font rather than the one they were called on.
See
Interface
IFontStyle