ooodev.format.inner.direct.chart2.title.font.font_only module

class ooodev.format.inner.direct.chart2.title.font.font_only.FontOnly(*, name=None, size=None, font_style=None, lang=None)[source]

Bases: FontOnly

Character Font for a chart title.

Any properties starting with prop_ set or get current instance values.

All methods starting with fmt_ can be used to chain together font properties.

New in version 0.9.4.

__init__(*, name=None, size=None, font_style=None, lang=None)[source]

Font options used in styles.

Parameters:
  • name (str, optional) – This property specifies the name of the font style. It may contain more than one name separated by comma.

  • size (int, UnitT, optional) – This value contains the size of the characters in pt (point) units or Class UnitT.

  • font_style (str, optional) – Font style name such as Bold.

  • lang (Lang, optional) – Font Language

Return type:

None

property prop_size: UnitPT | None

This value contains the size of the characters in point.

Return type:

UnitPT | None