Skip to content

API reference / Common / Engine types / GridFont

Interface: GridFont ​

A font — styleSheet/fonts/font (CT_Font, §18.8.22), and the partial one a differential format carries, styleSheet/dxfs/dxf/font. The paths below are given under styleSheet/fonts/font.

Every child is an Option: absent is "not set", which a differential format depends on — only what it sets lays over the cell's own font. A boolean child written with no @val is true (CT_BooleanProperty's default).

Properties ​

PropertyDescription
name?
string
styleSheet/fonts/font/name/@val — the typeface (§18.8.29).
size?
number
styleSheet/fonts/font/sz/@val — the size in points (§18.4.11).
color?
GridColor
styleSheet/fonts/font/color (§18.3.1.15).
bold?
boolean
styleSheet/fonts/font/b/@val (§18.8.2).
italic?
boolean
styleSheet/fonts/font/i/@val (§18.8.26).
strike?
boolean
styleSheet/fonts/font/strike/@val (§18.4.10).
underline?
GridUnderline
styleSheet/fonts/font/u/@val (§18.4.13) — single for a u with no @val, the schema's default.
verticalAlign?
GridVerticalAlignRun
styleSheet/fonts/font/vertAlign/@val (§18.4.14).
scheme?
GridFontScheme
styleSheet/fonts/font/scheme/@val (§18.8.35) — the theme font this font follows: a theme change re-points it to the new major or minor font.
family?
number
styleSheet/fonts/font/family/@val (§18.8.18) — 0 n/a, 1 Roman, 2 Swiss, 3 Modern, 4 Script, 5 Decorative: a hint for substituting a missing typeface. The name wins where the two disagree.
charset?
number
styleSheet/fonts/font/charset/@val (§18.4.1) — the character set, a hint for substituting a missing typeface.
outline?
boolean
styleSheet/fonts/font/outline/@val (§18.4.2).
shadow?
boolean
styleSheet/fonts/font/shadow/@val (§18.8.36) — Macintosh compatibility; "SpreadsheetML applications are not required to render according to this flag".
condense?
boolean
styleSheet/fonts/font/condense/@val (§18.8.12) — Macintosh compatibility, not required to render.
extend?
boolean
styleSheet/fonts/font/extend/@val (§18.8.17) — legacy, not required to render.